Home

Awesome

safename

Normalize diacritics and dashes, and transform spaces from strings

Build Status

Example

import { safename } from 'safename'

safename('My file name 1234 Ñáëîò~')
// => My_file_name_1234_Naeio

safename('My file name 1234 Ñáëîò~', '.')
// => My.file.name.1234.Naeio

Usage

safename( name, space )

Parameters:

Installation

Install with npm

$ npm install safename

Install with Yarn

$ yarn add safename

Tests

npm install && npm test

<br><br>


© 2014-2021 Jacobo Tabernero Rey

Released under MIT License