JSPM

saaslic

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q32041F
  • License MIT

SaaSlic Node.js SDK - Software license verification made simple

Package Exports

  • saaslic
  • saaslic/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (saaslic) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

saaslic

SaaSlic Node.js SDK - 3 行代码接入软件授权验证。

安装

npm install saaslic

使用

const { LicenseKit } = require("saaslic");

const lk = new LicenseKit("YOUR_PROJECT_CODE");

const result = await lk.verify("LIC-XXXXXXXX-XXXX"); if (result.ok) { console.log("验证成功:", result.license.project_name); } else { console.log("验证失败:", result.message); }

// 简洁写法 if (await lk.check("LIC-XXXXXXXX-XXXX")) { console.log("授权有效"); }

文档

https://saaslic.com/docs