chainy-plugin-fs

1.0.0 • Public • Published

File System plugin for ChainyJS

Build Status NPM version Dependency Status Development Dependency Status

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 b@lupton.cc (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 us@bevry.me (http://bevry.me)

Package Sidebar

Install

npm i chainy-plugin-fs

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bevryme