File: index.js

package info (click to toggle)
node-uri-path 1.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 100 kB
  • sloc: makefile: 2
file content (5 lines) | stat: -rw-r--r-- 122 bytes parent folder | download | duplicates (2)
1
2
3
4
5
'use strict';

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