Skip to content

A collection of useful Node utility functions that can be used across projects. Written in TypeScript.

Notifications You must be signed in to change notification settings

egjiri/node-kit

Repository files navigation

Node Kit Logo

CI Badge Coverage Badge

A collection of useful Node utility functions that can be used across projects. Written in TypeScript.

Installation

Install through npm:

npm install @egjiri/node-kit

Install through yarn:

yarn add @egjiri/node-kit

Usage Examples

import { formatNumber } from '@egjiri/node-kit/numbers'

formatNumber(1234.56, 'currency');
// => $1,234.56
import { removeKeysWithBlankValues } from '@egjiri/node-kit/objects'

removeKeysWithBlankValues({
  first: 'first',
  second: null,
  third: undefined,
  fourth: 4
});
// => { first: 'first', fourth: 4 }

Development

  1. Install dependencies: yarn
  2. Run tests yarn test (tests automatically re-run when TypeScript src files change)
  3. Start Coding!

Release

This project is released through GitHub Actions workflows that:

  1. Run the test suite and linters
  2. Build the TypeScript codebase into a build folder with JavaScript and TypeScript type definition files.
  3. Publish the build folder to the NPM Registry.

About

A collection of useful Node utility functions that can be used across projects. Written in TypeScript.

Resources

Stars

Watchers

Forks

Packages

No packages published