Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@digta

Small, dependency-light Node.js utilities for backend & IoT work — the boring building blocks you rewrite in every project, done once. Each is published separately on npm under the @digta scope, has TypeScript types, and works with both import and require.

Packages

Package Install What it does
@digta/logger npm i @digta/logger Colored console logger — timestamps, file output, log rotation, JSON & production modes. Zero deps.
@digta/config npm i @digta/config Config manager — load / save / watch JSON, YAML, and .env with one API.
@digta/network npm i @digta/network TCP / WebSocket client with autoreconnect, plus a tiny HTTP API client with retries.

Quick taste

import logger from "@digta/logger";
logger.success("PLC Connected");   // [09:31:22] SUCCESS  PLC Connected

import createConfig from "@digta/config";
const cfg = createConfig("./config.yaml").load();

import { createConnection, api } from "@digta/network";
const conn = createConnection({ url: "tcp://192.168.1.10:502" }).connect();
const { data } = await api.get("https://example.com/health");

See each package's README for the full API.

Requirements

Node.js 14+. @digta/logger has no dependencies; @digta/config pulls in js-yaml; @digta/network pulls in ws.

Develop

Each package is self-contained:

cd logger && npm test     # or config / network

License

MIT © digta

About

Dependency-light Node.js utilities for backend & IoT. Published under @digta on npm.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages