UNPKG

@11ty/recursive-copy

Version:

A fork of `recursive-copy`: Simple, flexible file copy utility

11 lines (8 loc) 261 B
// via https://github.com/sindresorhus/slash/blob/main/index.js (MIT license) module.exports = function slash(path) { const isExtendedLengthPath = path.startsWith('\\\\?\\'); if (isExtendedLengthPath) { return path; } return path.replace(/\\/g, '/'); }