factojs
v1.0.0-alpha.2
Published
Facto API Wrapper
Downloads
3
Readme
Facto for JavaScript
Installation and Usage
ES6 via npm
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);
CommonJS via npm
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);
Building/Testing
npm run build
- buildnpm test
- runs tests