canibekikked-api
Version:
API for canibekikked
44 lines (30 loc) • 1.18 kB
Markdown
> API for [canibekikked](https://github.com/parro-it/canibekikked).
[](http://travis-ci.org/parro-it/canibekikked-api)
[](https://npmjs.org/package/canibekikked-api)
[](https://npmjs.org/package/canibekikked-api)
```bash
npm install --save canibekikked-api
```
```js
import canibekikked from 'canibekikked-api';
const results = canibekikked();
results.on('package-checking', ({ name }) => {
// name => name of one package that is being checked
});
results.on('package-checked', res => {
// res => results object of package check if failed, or false
// is package is not registered
});
results.on('end', (passed, failed) => {
// passed => number of packages not trademarked
// failed => array of details for trademarked packages
});
const checked = results.start();
// checked => promise resolved on check end
```
The MIT License (MIT)
Copyright (c) 2016 parro-it