Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@file-services/posix-path

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@file-services/posix-path

Node's posix-`path` implementation converted to TypeScript and ready for the web.

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
33
decreased by-43.1%
Maintainers
2
Weekly downloads
 
Created
Source

@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

FAQs

Package last updated on 26 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc