0.2.0 • Published 5 years ago

@mahgoh/io v0.2.0

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

publish

@mahgoh/io

@mahgoh/io is a simple IO package for Node.js.

Installation

Use the package manager npm to install @mahgoh/io.

# Install
npm install @mahgoh/io

Usage

// Import data
const IO = require('@mahgoh/io');

// Read file asyncronous 
IO.read('myfile.json')
    .then(data => {
        console.log(data);
    })

By default the contents get parsed from JSON / stringified to JSON. This can be set to false.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

0.2.0

5 years ago

0.1.0

5 years ago