chainy-plugin-fs
v1.0.0
Published
Chainy custom plugin that adds the fs utility methods as chainy actions.
Downloads
3
Maintainers
Readme
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
Install
NPM
- Use:
require('chainy-plugin-fs')
- Install:
npm install --save chainy-plugin-fs
History
Discover the change history by heading on over to the HISTORY.md
file.
Contribute
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
Backers
Maintainers
These amazing people are maintaining this project:
- Benjamin Lupton [email protected] (https://github.com/balupton)
Sponsors
No sponsors yet! Will you be the first?
Contributors
No contributors yet! Will you be the first?
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
License
Licensed under the incredibly permissive MIT license
Copyright © 2014+ Bevry Pty Ltd [email protected] (http://bevry.me)