Files
enviPy-bayer/static/js/ketcher2/node_modules/babel-plugin-lodash/lib/util.js
2025-06-23 20:13:54 +02:00

27 lines
734 B
JavaScript

'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, '/');
};