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
- Host: GitHub
- URL: https://github.com/tpkn/keyfile-check
- Owner: tpkn
- License: mit
- Created: 2017-10-26T20:24:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-30T17:19:53.000Z (over 8 years ago)
- Last Synced: 2025-08-18T15:53:11.020Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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()});
```