@form8ion/core

core logic for form8ion tools

Usage no npm install needed!

<script type="module">
  import form8ionCore from 'https://cdn.skypack.dev/@form8ion/core';
</script>

README

core

core logic for form8ion tools

Codecov Node CI Workflow Status

Table of Contents

Usage

MIT license npm Try @form8ion/core on RunKit

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

PRs Welcome Conventional Commits Commitizen friendly semantic-release Renovate

Dependencies

$ nvm install
$ npm install

Verification

$ npm test