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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7327370 · Aug 29, 2021
Sep 3, 2020
Sep 2, 2020
Sep 3, 2020
Sep 2, 2020
Dec 6, 2020
Oct 26, 2020
Sep 2, 2020
Sep 8, 2020
Aug 28, 2020
Aug 29, 2021
Oct 25, 2020
Aug 29, 2021

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