shortme

1.2.1 • Public • Published

shortme

Create a short slug version from your text input. This could be useful for your filenames or creative slugs.

Installation

  • Run npm install shortme --save

Usage

const shortme = require("shortme");
shortme("Your Text Input", options) // Return "yti"

options Type: Object

delimiterChar Type: String, Default: "_"

Define delimiter char sign

maxCharLength Type: Number, Default: 16

Define max length from returning output String

Demo

Live demo available on http://projects.bminusg.de/shortme/

Package Sidebar

Install

npm i shortme

Weekly Downloads

2

Version

1.2.1

License

ISC

Unpacked Size

6.63 kB

Total Files

3

Last publish

Collaborators

  • bminusg