0.2.0 • Published 5 years ago
@mahgoh/io v0.2.0
@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.