index.js 105 B

123
  1. module.exports = function(path) {
  2. return path.split(/[\\\/]/g).map(encodeURIComponent).join('/');
  3. };