@nanpx/slugify

1.0.1 • Public • Published

slugify

NPM Build current version

Install

npm install @nanpx/slugify

Use

(() => {
  'use strict';

  const Slugify = require('@nanpx/slugify');
  const title = 'Page Title';
  const slug = Slugify.parseSync(title);

  console.log(slug); // 'page-title'

  // or promise version
  Slugify.parse(title)
  .then((slug) => console.log(slug)); // 'page-title'
})();

Package Sidebar

Install

npm i @nanpx/slugify

Weekly Downloads

4

Version

1.0.1

License

Apache-2.0

Unpacked Size

26.1 kB

Total Files

10

Last publish

Collaborators

  • nanpx