Package Exports
- file-js
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 (file-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
file-js
Abstract representation of a pathname
Installation
npm install --save file-jsDemo
Features
- File glob matching
- File listings
- Assert file permissions
- Supports promises
- Supports synchronous and asynchronous methods
Usage
const File = require('file-js');
const file = File.create('myDir');
const files = await file.getList();
files.forEach(console.log);
const file = File.create('myDirectory');
if (file.isDirectorySync()) {
console.log('processing directory');
}Documentation
For more examples and API details, see API documentation
Test
npm testTo generate a test coverage report:
npm run coverage