New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

slugify3

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slugify3

Unidecode based slugify implementation and CLI tool for file renaming

latest
npmnpm
Version
0.0.4
Version published
Weekly downloads
106
-7.02%
Maintainers
1
Weekly downloads
 
Created
Source

slugify3

Build Status NPM Version

Unidecode based slugify implementation and CLI tool for file renaming.

This slugify implementation is unique in the way that uses unidecode transliteration table. It tries to transliterate non-ascii symbols first before omitting them.

Installation

Install as dependency:

npm install slugify3

Install as CLI tool:

npm install -g slugify3

How to use

var slugify = require('slugify3');
slugify('Language Learning and Teaching');
slugify('Изучение и обучение иностранных языков', '+');
slugify('語文教學・语文教学');

API

slugify(string, separator)

  • string String - an unicode string to slugify
  • separator String, - optional, default "-", a replacement character for non-ascii symbols and spaces

CLI

Usage: slugify [OPTIONS] FILE

Options:
  -e  lowercase file extension

License

MIT

Keywords

slug

FAQs

Package last updated on 07 Feb 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts