An open API service indexing awesome lists of open source software.

https://github.com/tpkn/keyfile-check

Method to activate your app license key
https://github.com/tpkn/keyfile-check

Last synced: about 2 months ago
JSON representation

Method to activate your app license key

Awesome Lists containing this project

README

          

Provides the same level of security as if you just gave your app for free.

## Usage
```javascript
const kc = require('keyfile-check');

// Proccess started
kc.on('checking', e => {
console.log(e.message);
});

// Keyfile exist
kc.on('key', e => {
console.log(e.message);
});

// Verification succeeded
kc.on('success', e => {
console.log(e.message);
});

// Any errors
kc.on('fail', e => {
console.log(e.message);
});

let keyfile = path.join(process.cwd(), 'key.file');
kc.check({key: keyfile, server: 'http://localhost:3000/activate', uid: Date.now()});
```