easy-file

Easy file manipulation.

Usage no npm install needed!

<script type="module">
  import easyFile from 'https://cdn.skypack.dev/easy-file';
</script>

README

A simple file reader and writer.

var file = require('easy-file');

// Will create missing directories
file.write('tmp/hello.txt', 'hello world')

file.read('tmp/hello.txt', function(contents){
  console.log(contents);
})

Pull Requests Welcome