oomf
splits single file into separate files.
sample_oomfile.oomf
-- foo.txt
hello
-- bar.txt
world
index.js
const oomf = require('oomf');
oomf('sample_oomfile.oomf').then(function () {
// done
// foo.txt contains 'hello'
// bar.txt contains 'world'
});
You can also specify custom output directory (by default it's the dirname of oomfile):
const oomf = require('oomf');
oomf('sample_oomfile.oomf', '/some/other/dir');