safe-paths

0.1.5 • Public • Published

safe-paths

This module is intended to help format a string into a cross-platform path-safe string.

One potential example would be for taking a string with UTF-8 or other special characters and transforming into a string that is safe to use for a filename or directory name.

Usage

var safePath = require('safe-paths');
    
console.log(safePath.format('AC/DC Compilation CD'));
=> AC_DC_Compilation_CD

/safe-paths/

    Package Sidebar

    Install

    npm i safe-paths

    Weekly Downloads

    0

    Version

    0.1.5

    License

    MIT

    Last publish

    Collaborators

    • richdunajewski