npm.io
0.1.1 • Published 8 years ago

normalize-path-sep

Licence
MIT
Version
0.1.1
Deps
0
Vulns
0
Weekly
0

normalize-path-sep

Build Status tested with jest styled with prettier All Contributors

normalize path sep

Install

$ npm install --save normalize-path-sep

Usage

const normalizePathSep = require('normalize-path-sep')

// macOS or linux
normalizePathSep('/path/to/file')
//=> /path/to/file

// Windows
normalizePathSep('/path/to/file')
//=> \\path\\to\\file

API

normalizePathSep(input)
input

Type: string

file path.

Contributors

Thanks goes to these wonderful people (emoji key):


akameco

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT akameco