1.7.0 • Published 3 years ago

@egjiri/node-kit v1.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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 1. Build the TypeScript codebase into a build folder with JavaScript and TypeScript type definition files. 1. Publish the build folder to the NPM Registry.

1.7.0

3 years ago

1.6.0

3 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago