1.4.3 • Published 2 years ago
@eduha/node-license-api v1.4.3
Схема проверки лицензионного ключа
To be written
Как интегрировать в программу
npm i @eduha/node-license-api -s
const LicenseAPI = require('@eduha/node-license-api');
const l = new LicenseAPI('<project-name>');
l.routine();
Как проверять лимиты
const LicenseAPI = require('@eduha/node-license-api');
const l = new LicenseAPI('<project-name>');
l.routine();
const limits = l.limits(); // Объект с указанием лимитов
Как проверять срок жизни токена
const LicenseAPI = require('@eduha/node-license-api');
const l = new LicenseAPI('<project-name>');
l.routine();
const timestamp = l.expiration(); // UNIX timestamp времени истечения лицензии