Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Works exactly same as Node's path
, with following improvements:
path2/windows
for posix path2/posix
.process
object and can safely be used in any enviroment (e.g. browser) which does not provide it. If process.cwd
is not accessible, / or _C:_ (for windows) are used as current working directorypath2/resolve
or specifically posix version: path2/posix/resolve
One additional function, not present in native path
, is provided:
Resolves common path for given path arguments:
path.common('/lorem/ipsum/foo/bar', '/lorem/ipsum/raz/dwa',
'/lorem/elo/foo/bar'); // => '/lorem'
path.common
is proposed to be included in native path
In your project path:
$ npm install path2
You can easily bundle path2 for browser with modules-webmake
$ npm test
FAQs
Modular and extended version of `path` package
We found that path2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.