1.0.7 • Published 3 years ago

slugifi v1.0.7

Weekly downloads
9
License
MIT
Repository
github
Last release
3 years ago

Slugifi

version downloads license

Slugifi is small package for creating a slug from a string.

 

Release Notes (v1.0.7)

You can now remove special characters from string by enabling specialChars property from the options.

 

Installation

Npm :

$ npm install slugifi

Yarn :

$ yarn add slugifi

Pnpm :

$ pnpm add slugifi

 

Usage

ES6 :

import slugifi from 'slugifi';

slugifi('Random text'); // Outputs: random-text

CommonJS :

const slugifi = require('slugifi');

slugifi('Random text'); // Outputs: random-text

 

Options

slugifi('some text', {
  separator: '_', // defaults to '-'
  capitalize: true, // defaults to false
  specialChars: false, // defaults to true
});

 

License

MIT

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago