npm · npm:cross-dirname
cross-dirname active
[Node.js](https://nodejs.org) + [Gjs](https://gjs.guide/) + [Deno](https://deno.land/) module that returns the current script dirname and filename. Similar to `__dirname` and `__filename` but also works in CommonJs and ES modules.
The latest stable version of cross-dirname is 0.1.0, published on 2022-07-22. Verified by Vigia on 2026-11-12.
| Latest stable version | 0.1.0 |
|---|---|
| Published | 2022-07-22 16:17:28 UTC |
| Install | npm install cross-dirname@latest |
| Requires (engines) | none declared |
| Peer dependencies | — |
| Dist-tags | latest: 0.1.0 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 12:23:37 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Is your project affected?
Check my whole package.jsonGet notified of new versions (Atom)Facts for my AGENTS.md
Free, no signup. Paste your manifest and see what is outdated, deprecated or vulnerable.
Maintenance
| Activity | dormant |
|---|---|
| Last stable release | 2022-07-22 16:17:28 UTC · 1574 days ago |
| Stable releases in the last 12 months | 0 |
| Published versions | 6 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
0.1.0 | 2022-07-22 16:17:28 UTC |
0.0.6 | 2022-07-21 11:12:54 UTC |
0.0.5 | 2022-07-21 10:09:10 UTC |
0.0.4 | 2022-07-21 10:07:22 UTC |
0.0.3 | 2022-07-21 08:48:12 UTC |
0.0.2 | 2022-07-21 08:36:54 UTC |
Showing the 6 most recent of 6 versions. JSON
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of cross-dirname?
The latest stable version of cross-dirname is 0.1.0, published on 2022-07-22. Verified by Vigia on 2026-11-12.
How do I install the latest version of cross-dirname?
Run npm install cross-dirname@latest. The latest stable version is 0.1.0 (verified 2026-11-12).
Is cross-dirname deprecated?
No. cross-dirname is not marked as deprecated in the registry.
Which Node.js version does cross-dirname require?
cross-dirname 0.1.0 does not declare a Node.js version requirement.
Does cross-dirname 0.1.0 have known vulnerabilities?
No known advisories affect cross-dirname 0.1.0 according to the data Vigia checks.
Is cross-dirname still maintained?
cross-dirname published 0 stable releases in the last 12 months; the most recent was 1574 days ago. Activity: dormant.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- eslint-plugin-react-compiler
- @aws-sdk/client-ec2
- jayson
- expo-updates
- shallow-copy
- @ethersproject/sha2
- @storybook/cli
- @valibot/to-json-schema
- postcss-html
- @gorhom/portal
- @vercel/stega
- @turf/rewind
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/cross-dirname) [](https://vigia.coredls.cloud/npm/cross-dirname) [](https://vigia.coredls.cloud/npm/cross-dirname)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/cross-dirname
GET https://vigia.coredls.cloud/v1/packages/npm/cross-dirname/versions/{version}