pretty-filename

0.1.0 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    2

Package Sidebar

Install

npm i pretty-filename

Weekly Downloads

2

Version

0.1.0

License

Public domain

Last publish

Collaborators

  • zladuric