File System plugin for ChainyJS
Chainy custom plugin that adds the fs utility methods as chainy actions.
require('chainy').create().require("fs log")Chainy.create()
// Write method 1
.set({a:1}).writeTo(path)
// Write method 2
.set(path).writeFile(path)
// Check write worked
.set(path).exists().log() // true
// Check write data worked
.set(path).readFile().log() // {a:1}
// Delete
.set(path).unlink()
// Check delete worked
.set(path).exists().log() // false
- Use:
require('chainy-plugin-fs')
- Install:
npm install --save chainy-plugin-fs
Discover the change history by heading on over to the HISTORY.md
file.
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
These amazing people are maintaining this project:
- Benjamin Lupton [email protected] (https://github.com/balupton)
No sponsors yet! Will you be the first?
No contributors yet! Will you be the first?
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
Licensed under the incredibly permissive MIT license
Copyright © 2014+ Bevry Pty Ltd [email protected] (http://bevry.me)