@onededios/common.node is a lightweight collection of Node.js utilities that simplify server‑side development.
It ships common building blocks such as a console logger, environment variable loader/validator, file utilities, error handling helpers, and robust string‑to‑type parsers.
Common.Node/
├─ node_modules/ # Dependencies (preinstalled)
├─ src/ # TypeScript source code
│ ├─ config/ # Environment variable loader
│ ├─ factories/ # Utility for runtime enums
│ ├─ handlers/ # Error and file helpers
│ ├─ logging/ # Console logger
│ ├─ utils/ # Generic helpers (parser, random generator)
│ ├─ tests/ # Vitest unit tests
├─ index.ts # Package entry placeholder
├─ package.json # Scripts and dependency list
├─ tsconfig.json # TypeScript compiler settings
└─ vitest.config.ts # Test/coverage configurationnpm install @onededios/common.node # npm
pnpm add @onededios/common.node # pnpm
yarn add @onededios/common.node # yarn- Node.js ≥ 18
- ESM‑compatible runtime (the package ships both ESM
.mjsand CommonJS.cjsbuilds)
See full contributing info and steps in CONTRIBUTING
Licensed under the Apache 2.0 License.
See the full text in LICENSE.