@file-services/posix-path
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @file-services/posix-path

Weekly Downloads

163

Version

2.1.0

License

MIT

Unpacked Size

94.2 kB

Total Files

111

Last publish

Collaborators

  • cijoe
  • tomermes
  • pistolpete_
  • avi.vahl