Files
scriptc/tests/fixtures/npm-static/slash-cli.ts
T
2026-07-22 18:08:04 -05:00

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(""));