JSPM

is-regular-file

1.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 43166
  • Score
    100M100P100Q142819F
  • License MIT

Checks if a given path is a regular file

Package Exports

  • is-regular-file

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 (is-regular-file) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

is-regular-file

NPM version Downloads Build Status Coverage Status Dependency status Dev Dependency status Greenkeeper badge

Checks if a path is a regular file.

Installation

$ npm install is-regular-file

Usage

const isRegularFile = require('is-regular-file');

isRegularFile('path/to/file')
.then((is) => console.log('Is regular file:', is));

or if you prefer sync:

const isRegularFileSync = require('is-regular-file').sync;

console.log('Is regular file:', isRegularFileSync('path/to/file'));

Tests

$ npm test
$ npm test-cov to get coverage report

License

Released under the MIT License.