0.13.0 • Published 4 days ago

@kaciras/utilities v0.13.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 days ago

Utilities

npm npm type definitions Test codecov

A set of common JS functions for Node and browser.

Goals:

  • Just work for most cases, not a general framework.
  • No dependencies.
  • High performance & less code.
  • Write with latest ECMAScript.
  • Tree-shakeable.
  • No duplicated with FP libraries (lodash, underscore, etc.)
  • Type-first, We don't check for parameters that don't match the type.

Install

This package is pure ESM, it cannot be require()'d from CommonJS.

pnpm i @kaciras/utilities

The package has 2 entry points. Most functions work for both, but there are still some differences:

  • @kaciras/utilities/browser can be imported from any environment, also have functions work with DOM.
  • @kaciras/utilities/node have no browser-specific functions, but add utilities for Node, it can only be used in NodeJS.
// Use in Node.
import { /* ... */ } from "@kaciras/utilities/node";

// Use in other environment.
import { /* ... */ } from "@kaciras/utilities/browser";

Develop

Build the project:

pnpm build

Run tests. Some tests are for generated bundles, you should build them first.

pnpm run test:unit
pnpm run test:browser
pnpm run test:types
0.13.0

4 days ago

0.12.4

2 months ago

0.12.3

2 months ago

0.12.2

3 months ago

0.12.1

3 months ago

0.12.0

4 months ago

0.11.0

4 months ago

0.10.3

5 months ago

0.10.4

5 months ago

0.10.1

9 months ago

0.10.2

6 months ago

0.10.0

10 months ago

0.9.3

11 months ago

0.9.0

11 months ago

0.9.2

11 months ago

0.9.1

11 months ago

0.8.1

1 year ago

0.8.0

1 year ago

0.6.5

1 year ago

0.8.2

1 year ago

0.6.4

1 year ago

0.7.0

1 year ago

0.6.3

1 year ago

0.6.2

1 year ago

0.5.0

1 year ago

0.4.0

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.5.1

1 year ago

0.3.0

2 years ago

0.2.0

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.1.0

2 years ago