forked from enviPath/enviPy
Current Dev State
This commit is contained in:
27
static/js/ketcher2/node_modules/babel-plugin-lodash/lib/util.js
generated
vendored
Normal file
27
static/js/ketcher2/node_modules/babel-plugin-lodash/lib/util.js
generated
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
var _toString2 = require('lodash/toString');
|
||||
|
||||
var _toString3 = _interopRequireDefault(_toString2);
|
||||
|
||||
exports.normalizePath = normalizePath;
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* Normalizes `pkgPath` by converting path separators to forward slashes.
|
||||
*
|
||||
* @static
|
||||
* @memberOf util
|
||||
* @param {string} [pkgPath=''] The package path to normalize.
|
||||
* @returns {string} Returns the normalized package path.
|
||||
*/
|
||||
function normalizePath(pkgPath) {
|
||||
return (0, _toString3.default)(pkgPath).replace(/\\/g, '/');
|
||||
};
|
||||
Reference in New Issue
Block a user