file-js
Abstract representation of a pathname
Installation
npm install --save file-js
Demo
Features
- File glob matching
- File listings
- Assert file permissions
- Supports promises
- Supports synchronous and asynchronous methods
- Supports recursive operations (copy/delete)
Usage
const File = ; const file = File;const files = await file;files; const file = File;if file console;
Documentation
For more examples and API details, see API documentation
Test
npm test
To generate a test coverage report:
npm run coverage