Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

shorteners

1.0.0 • Public • Published

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

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

install

npm i shorteners

Downloadsweekly downloads

43

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability