Package Exports
- slash
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (slash) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
slash 
Convert Windows backslash paths to slash paths.
Forward-slash paths can be used in Windows as long as it's not an extended-length path and it doesn't contain Unicode.
Install
Install with npm: npm install --save slash
Example
var path = require('path');
var slash = require('slash');
var str = path.join('foo', 'bar');
console.log(str);
//=> foo\\bar
if (process.platform === 'win32') {
str = slash(str);
console.log(str);
//=> foo/bar
}
API
slash(path)
Type: String
Accepts a Windows backslash path and returns a slash path.
License
MIT License • © Sindre Sorhus