2.1.0 • Published 6 years ago
@file-services/posix-path v2.1.0
@file-services/posix-path
Node's posix-path implementation converted to TypeScript and ready for the web.
Original code: https://github.com/nodejs/node/blob/master/lib/path.js
Fork changes
- Dropped win32-related functionality.
- Ported to Typescript.
- Separated to files using
esmimports/exports. resolvefunction assumescwdis/.- Removed runtime validation of parameters.
- Fixed shadowed
startvariable inparsefunction. - Converted loops to
for-const-of, where possible. - Changed
varstatements toconst/letstatements. - Applied prettier code formatting.
License
MIT