Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

u301

u301-shortener489MIT0.0.6TypeScript support: included

Official U301 SDK to create branded short links, manage links, and access analytics. Built for Bun and Node with first-class TypeScript support.

u301, url shortener, short link, url shortener, url shortener api, url shortener service, url shortener tool, url shortener service, url shortener tool, url shortener service, url shortener tool

readme

U301 URL Shortener JS-SDK

U301 is a URL shortener service that allows you to bind custom domains to your shortened links.
Home · Documentation
NPM Version Build

[!WARNING] This package is ESM-only and does not support CommonJS (CJS).

Installation

bun add u301

Usage

import { U301 } from 'u301';

const u301 = new U301({
    apiKey: 'your-api-key',
    workspaceId: 'your-workspace-id',
});

// shorten a URL
const result = await u301.links.create('https://example.com');

License

MIT