1.0.0 • Published 6 years ago
proem v1.0.0
Proem
Proem is a standard library for TypeScript. It includes modules for handling arrays, objects, strings, etc.
Installation
with yarn:
yarn add proemor with npm:
npm install proemUsage
the main proem module includes a selection of utilities you need constantly:
import { TODO } from 'proem'proem has various submodules for different purposes:
proem/arrayfor array utility functionsproem/dictfor objects as hashmaps utility functionsproem/functionfor utilities and types for working with functionsproem/pipefor composing functions as a pipelineproem/somefor working with nullable valuesproem/unionfor working union type valuesproem/variantfor working with algebraic data types (like redux actions)
unlike the proem main module, submodules are designed to be imported as namespace:
import * as array from 'proem/array'
array.filter([1, 2, 3], n => n >= 2)Importing the main module once in your project adds other submodules into your TypeScript autocomplete.