1
2
3
4
5
6
7
8
9
10
11
12
13
| var normalizePath = require('./normalizePath');
| exports = function(path) {
| path = normalizePath(path);
| if (path[0] !== '/') {
| path = '/'.concat(path);
| }
| return encodeURI('file://'.concat(path)).replace(
| /[?#]/g,
| encodeURIComponent
| );
| };
|
| module.exports = exports;
|
|