Skip to content

zakodium/utils

Repository files navigation

@zakodium/utils

NPM version npm download test coverage license

Small utilities by zakodium for zakodium.

Installation

npm install @zakodium/utils

Usage

import { assertDefinedNotNull } from '@zakodium/utils';

const value: object | string | boolean | number | null | undefined = JSON.parse(someJsonString);

assertDefinedNotNull(value); // throws if value is null or undefined

// value type is object | string | boolean | number

List of utilities

Features that could be added later

License

MIT

Packages

 
 
 

Contributors