@simbo/import-meta-path
Version:
A small utility for safely deriving absolute file and directory paths from import.meta in Node.js, with a consistent fallback order.
64 lines • 1.82 kB
JSON
{
"name": "@simbo/import-meta-path",
"description": "A small utility for safely deriving absolute file and directory paths from import.meta in Node.js, with a consistent fallback order.",
"version": "1.0.0",
"keywords": [
"import.meta",
"esm",
"nodejs",
"file-path",
"dirname",
"filename",
"url",
"path-utils",
"utility",
"__dirname",
"__filename",
"fileurltopath"
],
"author": "Simon Lepel <simbo@simbo.de> (https://simbo.de/)",
"license": "MIT",
"homepage": "http://github.com/simbo/packages/tree/main/packages/import-meta-path",
"repository": "github:simbo/packages",
"bugs": "https://github.com/simbo/packages/issues",
"engines": {
"node": ">=20"
},
"type": "module",
"exports": {
".": "./dist/import-meta-path.js"
},
"files": [
"CHANGELOG.md",
"dist",
"LICENSE.md",
"README.md"
],
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "^4.6.2",
"@types/node": "^20.19.11",
"@vitest/coverage-v8": "^3.2.4",
"@vitest/ui": "^3.2.4",
"eslint": "^9.34.0",
"jiti": "^2.5.1",
"prettier": "^3.6.2",
"prettier-plugin-organize-attributes": "^1.0.0",
"typescript": "^5.9.2",
"vitest": "^3.2.4",
"@simbo/tsconfig": "1.0.4",
"@simbo/eslint-config": "1.0.3",
"@simbo/prettier-config": "1.0.4"
},
"scripts": {
"build": "tsc --project tsconfig.build.json",
"check:eslint": "eslint --config ./eslint.config.ts --max-warnings 0",
"check:format": "prettier --check .",
"check:types": "tsc --noEmit",
"clean:dist": "rm -rf dist",
"fix:eslint": "pnpm run check:eslint --fix",
"fix:format": "prettier --write .",
"test": "vitest run --coverage",
"test:ui": "pnpm run test:watch --ui",
"test:watch": "vitest dev --coverage"
}
}