1.0.0 ⢠Published 5 months ago
ceilr-node-sdk v1.0.0
CeilR Node.js SDK
š CeilR SDK is a Node.js library for feature access management, usage tracking, and entitlement fetching.
š¦ Installation
Install the package in your project:
npm install ceilr-node-sdk
š ļø Setup
Initialize the SDK:
const CeilR = require("ceilr-node-sdk");
const ceilr = new CeilR("your-api-key", "customer-id");
š Features
ā Check Feature Access
const hasAccess = await ceilr.checkFeature("premium_feature");
console.log("Feature Access:", hasAccess);
š Track Usage
await ceilr.trackUsage("api_calls", 1);
š Get User Entitlements
const entitlements = await ceilr.getUserEntitlements();
console.log("User Entitlements:", entitlements);
š” Offline Support
- Requests are queued when offline and retried when the device is back online.
š Configuration
You can set custom API endpoints if needed:
ceilr.endpoint = "https://custom-api-url.com";
š Updating the SDK
To update to the latest version:
npm update ceilr-node-sdk
š¤ Contributing
- Fork the repo
- Create a feature branch (
git checkout -b feature-name
) - Commit changes (
git commit -m "Add new feature"
) - Push to GitHub (
git push origin feature-name
) - Open a Pull Request š
š License
This project is licensed under the MIT License.
š Support
For any issues or questions, reach out via:
- GitHub Issues: https://github.com/GouniManikumar12/ceilr-node-sdk/issues
- Email: support@ceilr.com
1.0.0
5 months ago