1.2.0 • Published 5 years ago

file-js v1.2.0

Weekly downloads
12,223
License
Apache-2.0
Repository
github
Last release
5 years ago

file-js

NPM downloads Build Status Coverage Status github-issues stars forks

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 = 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 test

To generate a test coverage report:

npm run coverage
1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago