Package Exports
- micro-fs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (micro-fs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
micro-fs
File system and globbing utilities
Install
$ npm install micro-fs -SUsage
const mfs = require('micro-fs');
mfs.copy('src/**/*.js', 'lib').then(() => {
console.log('copy done.');
});
mfs.move('src/**/*.js', 'lib').then(() => {
console.log('move done.');
});
mfs.delete('dist/**').then(() => {
console.log('delete done.');
});
mfs.zip('src/**/*.js', 'source.zip').then(() => {
console.log('archive done.');
});
mfs.glob('src/**/*.js', options).then(files => {
console.log(files);
/**
* [{ cwd, base, path }]
*/
});API
mfs.copy(src, dest, options) => Promisemfs.move(src, dest, options) => Promisemfs.zip(src, dest, options) => Promisemfs.glob(src, options) => Promisemfs.delete(src, options) => Promise
srcis globs andoptionsare documented in glob-stream.
Report a issue
License
micro-fs is available under the terms of the MIT License.