node-shorty

Generate short URL paths based on a given counter. Based on django-shorty

Usage no npm install needed!

<script type="module">
  import nodeShorty from 'https://cdn.skypack.dev/node-shorty';
</script>

README

node-shorty

A simple node.js package that will generate tinyurl/bit.ly style URL paths given number.

This is useful if your webapp needs to generate shortened URLs. Just keep track of the number of shortened URLs generated and pass the counter into url_encode. Then, pass an encoded path into url_decode to find out the counter that was used to generate the URL path.

Example

See my open source URL shortner, wiqr, written for node.js.