# ilearnio/module-alias

Register aliases of directories and custom module paths in Node

Repository: https://github.com/ilearnio/module-alias
Canonical: https://ross.abutalabs.com/products/module-alias
Language: JavaScript
License: MIT
License Family: permissive
Topics: node, aliases, module, nodejs
Last push: 2026-02-05T06:05:07+00:00

## Health v2 (maintenance only)
Score: 62/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 66, release rhythm 35, longevity 100
- inputs: {"age_days": 3847, "days_push": 209, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1788, forks 71 (observed 2026-08-28T04:05:36.345016+00:00)

## What it is
A Node.js library that lets you register aliases for directories and custom module paths, eliminating long relative import paths like '../../../../some/module'. It supports both CommonJS and ES Modules via package.json configuration or programmatic registration.

## Use cases
- replace long relative import paths in node projects
- register custom module directories like private node_modules
- configure import aliases in package.json
- use path aliases with es modules in node
- resolve @-prefixed module aliases at runtime

## When to choose
- your Node.js codebase suffers from deeply nested relative imports
- you want zero-config aliases defined in package.json
- you need custom module directories acting like node_modules

## When to avoid
- you're using a bundler like webpack, Vite, or TypeScript paths which handle aliases natively
- you're publishing an npm package where alias patching can cause caveats
- you only target Deno or Bun which have built-in path mapping

## Facets
- artifact type: library
- maturity: active
- function: developer-tools, package-manager, configuration-management
- domain: developer-tools, backend
- platform: cli
- tags: module-aliases, path-resolution, esm, commonjs, import-aliases, nodejs

## Member repositories
- ilearnio/module-alias (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:36.345016+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:23:26.816652+00:00, confidence not recorded.
  - readme: https://github.com/ilearnio/module-alias (fetched 2026-08-28T04:05:36.345016+00:00, sha 436e99fd7dd8)
  - registry_npm: https://registry.npmjs.org/module-alias (fetched 2026-08-29T11:02:38.014339+00:00, sha b082d799515a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
