2.1.0 • Published 4 years ago

@file-services/posix-path v2.1.0

Weekly downloads
160
License
MIT
Repository
github
Last release
4 years ago

@file-services/posix-path

npm version package size

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 esm imports/exports.
  • resolve function assumes cwd is /.
  • Removed runtime validation of parameters.
  • Fixed shadowed start variable in parse function.
  • Converted loops to for-const-of, where possible.
  • Changed var statements to const/let statements.
  • Applied prettier code formatting.

License

MIT

2.1.0

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago