@onededios/common.node
v1.0.6
Published
Common node utilities for applications
Readme
Common.Node
@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.
Code Status
Overall
Quality and Maintenance
Maintainability
Table of Contents
Layout
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 configurationInstallation
npm install @onededios/common.node # npm
pnpm add @onededios/common.node # pnpm
yarn add @onededios/common.node # yarnRequirements
- Node.js ≥ 18
- ESM‑compatible runtime (the package ships both ESM
.mjsand CommonJS.cjsbuilds)
Contributing
See full contributing info and steps in CONTRIBUTING
License
Licensed under the Apache 2.0 License.
See the full text in LICENSE.
