Socket
Socket
Sign inDemoInstall

pathe

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pathe - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

4

dist/index.d.ts

@@ -18,4 +18,2 @@ import path from 'path';

declare const _default: Omit<path.PlatformPath, "win32" | "posix">;
export { basename, _default as default, delimiter, dirname, extname, format, isAbsolute, join, normalize, normalizeString, parse, relative, resolve, sep, toNamespacedPath };
export { basename, delimiter, dirname, extname, format, isAbsolute, join, normalize, normalizeString, parse, relative, resolve, sep, toNamespacedPath };
{
"name": "pathe",
"version": "0.2.0",
"description": "Normalized paths for Node.js",
"version": "0.3.0",
"description": "Universal path utils",
"repository": "unjs/pathe",

@@ -19,23 +19,21 @@ "license": "MIT",

],
"scripts": {
"build": "siroc build",
"lint": "eslint --ext .ts .",
"prepublishOnly": "yarn build",
"release": "yarn test && standard-version && git push --follow-tags && npm publish",
"test": "nyc mocha -r jiti/register test/*"
},
"devDependencies": {
"@nuxtjs/eslint-config-typescript": "latest",
"@types/chai": "^4.2.22",
"@types/mocha": "^9.0.0",
"@types/node": "^16.9.6",
"chai": "^4.3.4",
"@types/node": "^16.11.33",
"c8": "^7.11.2",
"eslint": "latest",
"jiti": "^1.12.3",
"mocha": "^9.1.1",
"nyc": "^15.1.0",
"siroc": "latest",
"jiti": "^1.13.0",
"standard-version": "latest",
"typescript": "^4.4.3"
"typescript": "^4.6.4",
"unbuild": "^0.7.4",
"vitest": "^0.10.4"
},
"packageManager": "pnpm@7.0.0",
"scripts": {
"build": "unbuild",
"dev": "vitest",
"lint": "eslint --ext .ts .",
"release": "pnpm vitest run && standard-version && git push --follow-tags && pnpm publish",
"test": "pnpm lint && vitest run --coverage"
}
}
}
# pathe
> Normalized paths for Node.js
> Universal `path` utils

@@ -9,4 +9,2 @@ [![version][npm-v-src]][npm-v-href]

🧪 This package is still experimental and might not handle all cases. Please track issues.
## ❓ Why

@@ -19,5 +17,5 @@

This package is a drop-in replacement of the Node.js's `path` module and ensures paths are normalized with slash `/`.
This package is a drop-in replacement of the Node.js's `path` module and ensures paths are normalized with slash `/` and work in environments without Node.js as well!
Compared to popular [upath](https://github.com/anodynos/upath), pathe is providing **identical exports** of Node.js with normalization on **all operations** and written in modern **ESM/Typescript**.
Compared to popular [upath](https://github.com/anodynos/upath), pathe is providing **identical exports** of Node.js with normalization on **all operations** and written in modern **ESM/Typescript** and has **no dependency on Node.js**!

@@ -29,5 +27,10 @@ ## 💿 Install

```bash
# npm
npm i pathe
# or
# yarn
yarn add pathe
# pnpm
pnpm i pathe
```

@@ -34,0 +37,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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