Skip to content

make any string to shorter for SEO or other devices limit length characters, good at for shorter url

License

Notifications You must be signed in to change notification settings

nguyenchilong/shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shortener

A mini Node.js module for make string shorter, url-friendly, can't decrypt. Use this module when you want to encrypt any string shorter for devices limit characters, unique and url friendly. Easy for use without any setup, without put any options, only require then call now

Install

Run with npm installed

npm install shorteners

Usage

'use strict';

var shortener = require('shorteners');

// define string
let my_url = 'http://www.lazada.co.th/maybelline-1-maybellinefashion-brow-ultra-fluffy-brown1-7906309.html';
// call hash make shorter string
let url_shorter = shortener.shortener(my_url);

console.log(url_shorter);
// 1XpN4z

About

make any string to shorter for SEO or other devices limit length characters, good at for shorter url

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published