# @kulkul/tinyurl-client

> TinyURL JavaScript client

Latest version **1.0.8** (published 2026-01-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @kulkul/tinyurl-client
pnpm add @kulkul/tinyurl-client
yarn add @kulkul/tinyurl-client
bun add @kulkul/tinyurl-client
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2026-01-26 |
| First published | 2020-05-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 57.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 30 |
| Author | kulkultech |
| Maintainers | mappuji, galanggg |

## Links

- npm: https://www.npmjs.com/package/@kulkul/tinyurl-client
- Repository: git@github.com:kulkultech/tinyurl-client
- npm.io page: https://npm.io/package/@kulkul/tinyurl-client

## Recent versions

- 1.0.8 (latest) — 2026-01-26
- 1.0.7 — 2020-10-10
- 1.0.6 — 2020-05-27
- 1.0.5 — 2020-05-27
- 1.0.4 — 2020-05-27

## README

# TinyURL JavaScript Client

[![Contact me on Codementor](https://cdn.codementor.io/badges/contact_me_github.svg)](https://www.codementor.io/amappuji?utm_source=github&utm_medium=button&utm_term=amappuji&utm_campaign=github)
[![Made in Indonesia](https://made-in-indonesia.github.io/made-in-indonesia.svg)](https://github.com/made-in-indonesia/made-in-indonesia)
[![Build Status](https://travis-ci.org/kulkultech/tinyurl-client.svg?branch=master)](https://travis-ci.org/kulkultech/tinyurl-client)

Easily use TinyURL in your browser.

# Getting Started

1. Install it

        $ npm install @kulkul/tinyurl-client

2. Use it

```javascript
import shortenUrl from "@kulkul/tinyurl-client";

shortenUrl("https://kulkul.tech").then((result) => {
    console.log({ result }); // https://tinyurl.com/<random-slug>
});
```

## Important Note on Custom Aliases

**Custom aliases are no longer supported.** The underlying TinyURL API endpoint used by this client does not support custom aliases. Any alias parameter provided will be ignored, and a random slug will be generated instead.

```javascript
import shortenUrl from "@kulkul/tinyurl-client";

// Alias parameter is deprecated and will be ignored
shortenUrl("https://kulkul.tech", "my-custom-alias").then((result) => {
    console.log({ result }); // https://tinyurl.com/<random-slug> (NOT my-custom-alias)
});
```

---
_Source: https://npm.io/package/@kulkul/tinyurl-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
