Status: supported experimental lexical package.
Browser-safe standalone CanonicalPath lexical identity helpers.
Use this package when browser or standalone JavaScript code needs to share the same path identity contract as the rest of the monorepo without importing Node filesystem APIs. It does not perform filesystem I/O and is not an authoritative filesystem security boundary.
Scope:
- Reuse shared vectors from
spec/testdataforcanonicalpathlexical behavior. - No local filesystem operations in this target.
- No local
canonicalfssecurity claims; delegate security-sensitive I/O to the Go daemon. - Package exports point at generated
distESM and declaration output;distis built locally and not committed. - Synchronous
encodeGitRefuses an internal SHA-256 implementation so shared vector behavior matches Go and TypeScript.
Checks:
pnpm -C packages/javascript-standalone typecheckpnpm -C packages/javascript-standalone buildpnpm -C packages/javascript-standalone build:smokepnpm -C packages/javascript-standalone testpnpm js:standalone:alloc
@romanilyin/canonicalpath-standalone is licensed under the MIT License.
The Unity package com.romanilyin.canonicalpath is licensed separately under
Stinger Royalty-Free EULA 1.0.