UNPKG

@flex-development/pathe

Version:

Universal drop-in replacement for node:path

325 lines 11.9 kB
{ "name": "@flex-development/pathe", "description": "Universal drop-in replacement for node:path", "version": "4.0.2", "keywords": [ "backslash", "filesystem", "forwardslash", "linux", "macos", "node", "node.js", "nodejs", "path", "posix", "slash", "typescript", "windows" ], "license": "BSD-3-Clause", "homepage": "https://github.com/flex-development/pathe", "repository": { "type": "git", "url": "git+https://github.com/flex-development/pathe.git" }, "bugs": "https://github.com/flex-development/pathe/issues", "author": { "name": "Lexus Drumgold", "url": "https://github.com/unicornware" }, "publishConfig": { "access": "public", "diff-dst-prefix": "pathe", "diff-src-prefix": "pathe", "directory": "./", "executableFiles": [], "node-options": null, "pack-destination": ".", "parseable": true, "prefer-dedupe": true, "provenance": true, "tag-version-prefix": "" }, "type": "module", "files": [ "CHANGELOG.md", "LICENSE.md", "README.md", "dist" ], "exports": { ".": { "pathe": "./src/index.mts", "default": "./dist/index.mjs" }, "./index": null, "./package.json": "./package.json", "./posix": { "pathe": "./src/posix.mts", "default": "./dist/posix.mjs" }, "./win32": { "pathe": "./src/win32.mts", "default": "./dist/win32.mjs" }, "./*": { "pathe": "./src/lib/*.mts", "default": "./dist/lib/*.mjs" } }, "imports": { "#build/*": "./build/*.mts", "#fixtures/*": "./__fixtures__/*.mts", "#interfaces/*": { "pathe": "./src/interfaces/*.mts", "default": "./dist/interfaces/*.d.mts" }, "#internal/domain-to-ascii": { "browser": { "pathe": "./src/internal/domain-to-ascii.browser.mts", "default": "./dist/internal/domain-to-ascii.browser.mjs" }, "node": { "pathe": "./src/internal/domain-to-ascii.node.mts", "default": "./dist/internal/domain-to-ascii.node.mjs" }, "default": "./dist/internal/domain-to-ascii.node.mjs" }, "#internal/domain-to-unicode": { "browser": { "pathe": "./src/internal/domain-to-unicode.browser.mts", "default": "./dist/internal/domain-to-unicode.browser.mjs" }, "node": { "pathe": "./src/internal/domain-to-unicode.node.mts", "default": "./dist/internal/domain-to-unicode.node.mjs" }, "default": "./dist/internal/domain-to-unicode.node.mjs" }, "#internal/process": { "types": "./src/internal/process.d.mts", "browser": { "pathe": "./src/internal/process.browser.mts", "default": "./dist/internal/process.browser.mjs" }, "node": "process", "default": "process" }, "#internal/*": { "pathe": "./src/internal/*.mts", "default": "./dist/internal/*.mjs" }, "#lib": { "pathe": "./src/lib/index.mts", "default": "./dist/lib/index.mjs" }, "#lib/*": { "pathe": "./src/lib/*.mts", "default": "./dist/lib/*.mjs" }, "#pathe": { "pathe": "./src/pathe.mts", "default": "./dist/pathe.mjs" }, "#tests/*": "./__tests__/*.mts", "#types/*": { "pathe": "./src/types/*.mts", "default": "./dist/types/*.d.mts" } }, "module": "./dist/index.mjs", "types": "./dist/index.d.mts", "scripts": { "build": "yarn clean:build; node --conditions pathe --conditions development --experimental-strip-types --experimental-transform-types ./build/build.mts", "check:ci": "yarn dedupe --check && yarn check:format && yarn check:lint && yarn check:spelling && yarn typecheck && yarn test:cov && yarn pack && yarn check:types:build && attw package.tgz && yarn clean:pack", "check:format": "dprint check --incremental=false", "check:lint": "eslint --exit-on-fatal-error --max-warnings 0 .", "check:spelling": "cspell lint --color --no-progress --relative $@ \"**\"", "check:types": "tsc -p tsconfig.typecheck.json", "check:types:attw": "yarn pack && attw package.tgz; yarn clean:pack", "check:types:build": "tsc -p tsconfig.build.json", "check:upgrades": "yarn upgrade-interactive", "clean:build": "trash \"./{dist,*.tgz}\"", "clean:modules": "trash ./.yarn/{cache,*.gz} ./node_modules", "clean:pack": "trash \"./*.tgz\"", "clean:test": "trash ./coverage && trash __tests__/reports", "codecov": "yarn test:cov && yarn test:cov:upload", "codecov:validate": "cat .codecov.yml | curl --data-binary @- https://codecov.io/validate", "commitlint": "commitlint -V", "fix:cg": "yarn fix:format && yarn fix:lint", "fix:dedupe": "yarn dedupe --strategy=highest", "fix:format": "dprint fmt", "fix:lint": "yarn check:lint --cache --fix", "_postinstall": "[ -f ./node_modules/.bin/husky ] && chmod +x .husky/* && husky || exit 0", "postpack": "toggle-scripts +postinstall", "postpublish": "toggle-scripts +prepack", "prepack": "toggle-scripts -postinstall && yarn build", "prepublishOnly": "toggle-scripts -prepack", "release": "bash ./scripts/release.sh", "remark": "remark .", "test": "yarn clean:build; cross-env NODE_OPTIONS=\"--conditions pathe --experimental-strip-types --experimental-transform-types\" vitest run", "test:cov": "yarn test --coverage", "test:cov:reports": "yarn test:cov --merge-reports --mode=reports", "test:cov:ui": "yarn test:ui --coverage", "test:cov:upload": "./codecov -t $CODECOV_TOKEN -f ./coverage/lcov.info", "test:reports": "yarn test --merge-reports --mode=reports", "test:ui": "cross-env VITEST_UI=1 NODE_OPTIONS=\"--conditions pathe --experimental-strip-types --experimental-transform-types\" vitest --ui", "typecheck": "yarn test --typecheck --mode=typecheck", "typecheck:ui": "yarn test:ui --typecheck --mode=typecheck" }, "dependencies": { "@flex-development/errnode": "3.1.1", "@types/micromatch": "4.0.9", "micromatch": "4.0.8", "punycode.js": "2.3.1" }, "devDependencies": { "@arethetypeswrong/cli": "0.17.4", "@commitlint/cli": "19.7.1", "@commitlint/types": "19.5.0", "@eslint/js": "9.23.0", "@faker-js/faker": "9.5.1", "@flex-development/commitlint-config": "1.0.1", "@flex-development/ext-regex": "2.0.0", "@flex-development/grease": "3.0.0-alpha.9", "@flex-development/mkbuild": "1.0.0-alpha.23", "@flex-development/mlly": "1.0.0-alpha.18", "@flex-development/pkg-types": "4.1.0", "@flex-development/tsconfig-utils": "2.0.2", "@flex-development/tutils": "6.0.0-alpha.25", "@stylistic/eslint-plugin": "4.0.1", "@tsconfig/strictest": "2.0.5", "@types/chai": "5.0.1", "@types/chai-string": "1.4.5", "@types/eslint": "9.6.1", "@types/eslint__js": "8.42.3", "@types/is-ci": "3.0.4", "@types/node": "22.9.0", "@types/node-notifier": "8.0.5", "@typescript-eslint/eslint-plugin": "8.26.0", "@typescript-eslint/parser": "8.26.0", "@vates/toggle-scripts": "1.0.0", "@vitest/coverage-v8": "3.0.7", "@vitest/ui": "3.0.7", "chai": "5.2.0", "chai-string": "1.5.0", "consola": "3.4.0", "cross-env": "7.0.3", "cspell": "8.17.5", "devlop": "1.1.0", "dprint": "0.49.0", "editorconfig": "2.0.1", "esbuild": "0.25.0", "eslint": "9.23.0", "eslint-import-resolver-typescript": "3.8.3", "eslint-mdx": "3.1.5", "eslint-plugin-chai-expect": "3.1.0", "eslint-plugin-import": "2.31.0", "eslint-plugin-jest-formatting": "3.1.0", "eslint-plugin-jsdoc": "50.6.3", "eslint-plugin-jsonc": "2.19.1", "eslint-plugin-mdx": "3.1.5", "eslint-plugin-n": "17.16.2", "eslint-plugin-promise": "7.2.1", "eslint-plugin-unicorn": "56.0.1", "eslint-plugin-yml": "1.17.0", "globals": "15.15.0", "growl": "1.10.5", "husky": "9.1.7", "is-ci": "4.1.0", "jsonc-eslint-parser": "2.4.0", "node-notifier": "10.0.1", "prettier": "3.5.1", "pretty-bytes": "6.1.1", "remark": "15.0.1", "remark-cli": "12.0.1", "remark-directive": "4.0.0", "remark-frontmatter": "5.0.0", "remark-gfm": "4.0.1", "remark-lint": "10.0.1", "remark-lint-blockquote-indentation": "4.0.1", "remark-lint-checkbox-character-style": "5.0.1", "remark-lint-checkbox-content-indent": "5.0.1", "remark-lint-code-block-style": "4.0.1", "remark-lint-definition-case": "4.0.1", "remark-lint-definition-spacing": "4.0.1", "remark-lint-emphasis-marker": "4.0.1", "remark-lint-fenced-code-flag": "4.1.1", "remark-lint-fenced-code-marker": "4.0.1", "remark-lint-file-extension": "3.0.1", "remark-lint-final-definition": "4.0.2", "remark-lint-final-newline": "3.0.1", "remark-lint-first-heading-level": "4.0.1", "remark-lint-hard-break-spaces": "4.1.1", "remark-lint-heading-increment": "4.0.1", "remark-lint-heading-style": "4.0.1", "remark-lint-linebreak-style": "4.0.1", "remark-lint-link-title-style": "4.0.1", "remark-lint-list-item-bullet-indent": "5.0.1", "remark-lint-list-item-content-indent": "4.0.1", "remark-lint-list-item-indent": "4.0.1", "remark-lint-list-item-spacing": "5.0.1", "remark-lint-maximum-heading-length": "4.1.1", "remark-lint-maximum-line-length": "4.1.1", "remark-lint-no-blockquote-without-marker": "6.0.1", "remark-lint-no-consecutive-blank-lines": "5.0.1", "remark-lint-no-duplicate-defined-urls": "3.0.1", "remark-lint-no-duplicate-definitions": "4.0.1", "remark-lint-no-duplicate-headings-in-section": "4.0.1", "remark-lint-no-emphasis-as-heading": "4.0.1", "remark-lint-no-empty-url": "4.0.1", "remark-lint-no-file-name-articles": "3.0.1", "remark-lint-no-file-name-consecutive-dashes": "3.0.1", "remark-lint-no-file-name-irregular-characters": "3.0.1", "remark-lint-no-file-name-mixed-case": "3.0.1", "remark-lint-no-file-name-outer-dashes": "3.0.1", "remark-lint-no-heading-content-indent": "5.0.1", "remark-lint-no-heading-indent": "5.0.1", "remark-lint-no-heading-like-paragraph": "4.0.1", "remark-lint-no-heading-punctuation": "4.0.1", "remark-lint-no-literal-urls": "4.0.1", "remark-lint-no-missing-blank-lines": "4.0.1", "remark-lint-no-multiple-toplevel-headings": "4.0.1", "remark-lint-no-paragraph-content-indent": "5.0.1", "remark-lint-no-shell-dollars": "4.0.1", "remark-lint-no-shortcut-reference-image": "4.0.1", "remark-lint-no-shortcut-reference-link": "4.0.1", "remark-lint-no-table-indentation": "5.0.1", "remark-lint-no-tabs": "4.0.1", "remark-lint-no-undefined-references": "5.0.1", "remark-lint-no-unneeded-full-reference-image": "4.0.1", "remark-lint-no-unneeded-full-reference-link": "4.0.1", "remark-lint-no-unused-definitions": "4.0.1", "remark-lint-ordered-list-marker-style": "4.0.1", "remark-lint-ordered-list-marker-value": "4.0.1", "remark-lint-rule-style": "4.0.1", "remark-lint-strikethrough-marker": "3.0.1", "remark-lint-strong-marker": "4.0.1", "remark-lint-table-cell-padding": "5.1.1", "remark-lint-table-pipe-alignment": "4.1.1", "remark-lint-table-pipes": "5.0.1", "remark-lint-unordered-list-marker-style": "4.0.1", "remark-validate-links": "13.1.0", "sh-syntax": "0.4.2", "tinyrainbow": "2.0.0", "trash-cli": "6.0.0", "ts-dedent": "2.2.0", "typescript": "5.7.2", "typescript-eslint": "8.26.0", "unified": "11.0.5", "vfile": "6.0.3", "vite": "6.1.6", "vitest": "3.0.7", "yaml-eslint-parser": "1.2.3" }, "resolutions": { "@flex-development/pkg-types": "4.1.0", "vite": "6.1.6" }, "engines": { "node": ">=18.20.4" }, "packageManager": "yarn@4.5.3", "sideEffects": false }