Skip to content

zladuric/pretty-filename

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pretty filename

Create a pretty filename from an unsafe string.

Example

require('pretty-filename')('filj23-^$24 t4.ex??t'); // 'filj23-24 t4.ext'

Details

We keep alphanumeric characters, -, _, a space and a dot. We trim space from the start and the end, and we also do not end with a dot.

About

A simple utility to create a pretty filename from a given string in Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published