npm install facto
To import only what you need by patching (this is useful for size-sensitive bundling):
import { Facto } from 'facto';
const apiKey = 'abc';
const facto = new Facto(apiKey);
To install this library for CommonJS (CJS) usage, use the following command:
npm install facto
const { Facto } = require('facto');
const apiKey = 'abc';
const facto = new Facto(apiKey);
-
npm run build
- build -
npm test
- runs tests