mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-22 05:59:31 +08:00
11 lines
392 B
TypeScript
11 lines
392 B
TypeScript
// npm-static pilot: the real slash package (vendored, pure ESM + own
|
|
// .d.ts) compiled STATICALLY. Byte-compared with Node.
|
|
import slash from "slash";
|
|
|
|
console.log(slash("foo\\bar\\baz"));
|
|
console.log(slash("C:\\Users\\dev\\project"));
|
|
console.log(slash("\\\\?\\C:\\extended\\path"));
|
|
console.log(slash("already/posix/path"));
|
|
console.log(slash("mixed\\and/both"));
|
|
console.log(slash(""));
|