README
core
core logic for form8ion tools
Table of Contents
Usage
Installation
$ npm install @form8ion/core --save-prod
Example
import {directoryExists, fileExists} from '@form8ion/core';
(async () => {
await fileExists('path/to/some/expected/file');
await directoryExists('path/to/some/expected/directory');
})();
API
fileExists
wrapper around fs.promises.stat()
to determine whether a file exists at a given path.
directoryExists
wrapper around fs.promises.stat()
to determine whether a directory exists at a given path.
Contributing
Dependencies
$ nvm install
$ npm install
Verification
$ npm test