heuristics
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

heuristics

Useful heuristics, type checks, and validation helpers for JavaScript and TypeScript

Build Status npm version License: MIT

heuristics is a library of useful heuristics, type checks, and validation helpers for JavaScript and TypeScript. Instead of repeatedly validating types (here, we mean type guards, not annotations), evaluating whether or not an API response is null (or indeed an object, only entirely empty), you can depend on this tested, consistent library API to get the job done.

Exquisite GIF of Hagrid

Installation

npm install heuristics

OR

yarn add heuristics

Supported Environments

heuristics currently supports UMD, CommonJS (node versions >= 10), and ESM build-targets

Commonjs:

const { } = require('heuristics');

ESM:

import { } from 'heuristics';

Package Sidebar

Install

npm i heuristics

Weekly Downloads

3

Version

1.1.0

License

MIT

Unpacked Size

34.3 kB

Total Files

8

Last publish

Collaborators

  • magister_zito