@dizmo/functions
TypeScript icon, indicating that this package has built-in type declarations

4.2.8 • Public • Published

NPM version Build Status Coverage Status

@dizmo/functions

Library of useful functions, which can be used to develop dizmos.

Usage

Installation

npm install @dizmo/functions --save

Require

import '@dizmo/functions';

Example(s)

import { agent } from '@dizmo/functions'
import { after, before } from '@dizmo/functions'
import { buffered, queued } from '@dizmo/functions'
import { experimental, unexperimental } from '@dizmo/functions';
import { deprecated, undeprecated } from '@dizmo/functions';
import { filter } from '@dizmo/functions'
import { Lock } from '@dizmo/functions'
import { partial } from '@dizmo/functions'
import { random } from '@dizmo/functions'
import { trace, traceable } from '@dizmo/functions'
import { array2tree, object2tree } from '@dizmo/functions'
import { tree2array, tree2object } from '@dizmo/functions'

Development

Clean

npm run clean

Build

npm run build

without linting and cleaning:

npm run -- build --no-lint --no-clean

with UMD bundling (incl. minimization):

npm run -- build --prepack

with UMD bundling (excl. minimization):

npm run -- build --prepack --no-minify

Lint

npm run lint

with auto-fixing:

npm run -- lint --fix

Test

npm run test

without linting, cleaning and (re-)building:

npm run -- test --no-lint --no-clean --no-build

Cover

npm run cover

without linting, cleaning and (re-)building:

npm run -- cover --no-lint --no-clean --no-build

Debugging

Connect @dizmo/functions to another project:

[@dizmo/functions] $ npm link # symlink global:@dizmo/functions
[a-project] $ npm link @dizmo/functions # symlink node-modules:@dizmo/functions
[a-project] $ head webpack.config.js # ensure @dizmo/functions in entry.main
entry: {
    main: [..., '@dizmo/functions', './source/index.js']
}

Disconnect @dizmo/functions from the project:

[a-project] $ npm unlink @dizmo/functions # delete local symlink
[@dizmo/functions] $ npm uninstall -g # delete global symlink

Documentation

npm run docs

Publication

npm publish

initially (if public):

npm publish --access=public

Copyright

© 2021 dizmo AG, Switzerland

Readme

Keywords

Package Sidebar

Install

npm i @dizmo/functions

Weekly Downloads

7

Version

4.2.8

License

ISC

Unpacked Size

707 kB

Total Files

12

Last publish

Collaborators

  • dizmo-user
  • hsk81