The official Node.js SDK for SkyBrance services. Integrate link shortening, analytics, and other SkyBrance features into your applications.
Install from npm:
npm install @skybrance/sdk-nodeInitialize the SDK with your API key and create a shortened link.
const { SkyBranceClient } = require("@skybrance/sdk-node");
// Initialize the client
const skybrance = new SkyBranceClient("YOUR_API_KEY");
// Example: Create a new shortened link
async function run() {
try {
const link = await skybrance.createLink({
url: "https://google.com",
customAlias: "my-link",
});
console.log("Shortened link:", link.shortUrl);
} catch (error) {
console.error("Error creating link:", error.message);
}
}
run();import { SkyBranceClient } from "@skybrance/sdk-node";
const skybrance = new SkyBranceClient(process.env.SKYBRANCE_API_KEY || "");
// Use the same API methods as shown in the JavaScript example- Link Shortening — Easily shorten long URLs.
- Analytics — Track clicks and engagement for your generated links.
- TypeScript Support — Full type definitions for a better developer experience.
For full API reference and advanced usage, see the official documentation on the SkyBrance website.
This project is licensed under the MIT License.
Contributions are welcome. Please open issues or pull requests and follow the contributing guidelines.