UNPKG

assets

Version:
9 lines (7 loc) 297 B
var convertPathToUrl = require('./convertPathToUrl'); var path = require('path'); module.exports = function (basePath, relativeTo, resolvedPath) { var from = path.resolve(basePath, relativeTo); var relativePath = path.relative(from, resolvedPath); return convertPathToUrl(relativePath); };