Skip to content
/ fs Public

Chainy custom plugin that adds the fs utility methods as chainy actions.

License

Notifications You must be signed in to change notification settings

chainyjs/fs

Repository files navigation

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

  • 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:

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)

About

Chainy custom plugin that adds the fs utility methods as chainy actions.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published