JSPM

Found 51 results for coerce

is-number

Returns true if a number or string value is a finite number. Useful for regex matches, parsing, user input, etc.

  • v7.0.0
  • 123.89
  • Published

es-to-primitive

ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES2015 versions.

  • v1.3.0
  • 117.32
  • Published

putil-varhelpers

Helper methods for manipulating variables

  • v1.6.5
  • 67.85
  • Published

pop-arrayify

Transforms various collections into arrays by whatever means they support

  • v1.0.0
  • 59.25
  • Published

env-bool

env value to JS value, check env val is boolean or others

  • v2.0.1
  • 54.24
  • Published

valgen

Fast runtime type validator, converter and io (encoding/decoding) library

  • v5.18.2
  • 42.18
  • Published

tiny-coerce

Tiny coercion library for Client or Server

  • v3.0.2
  • 41.08
  • Published

@wopjs/cast

Filter types from unknown

  • v0.1.2
  • 40.21
  • Published

vrm

Coerces, validates and prettifies vehicle registration marks (VRMs)

  • v0.1.2
  • 38.52
  • Published

@thi.ng/args

Declarative, functional CLI argument/options parser, value coercions, sub-commands etc.

  • v2.9.3
  • 36.56
  • Published

vrm-no-fs

Coerces, validates and prettifies vehicle registration marks (VRMs)

  • v0.1.3
  • 35.07
  • Published

coercion

Helper module to parse/cast/coerce strings.

  • v1.1.0
  • 34.38
  • Published

@mdf.js/core

MMS - API Core - Common types, classes and functions

  • v1.6.0
  • 31.77
  • Published

type-coercion

Simple node module that coerce strings to certain types

  • v1.0.1
  • 31.36
  • Published

@mdf.js/utils

MMS - API Core - Common utils tools

  • v1.6.0
  • 31.09
  • Published

type-coerce

helper library to coerce values

  • v0.1.0
  • 26.19
  • Published

@vionemc/ts-is-number

Returns true if a number or string value is a finite number. Useful for regex matches, parsing, user input, etc. A Typescript refactor version.

  • v1.0.0
  • 23.85
  • Published

typeov

👺 weak but accurate type checking that returns a string representation of input's type

  • v1.2.6
  • 23.39
  • Published

argv-to-object

Maps command-line arguments to a configuration object.

  • v1.0.1
  • 21.39
  • Published

env-config-map

Generates a config object from a config map using any input sources.

  • v1.0.4
  • 20.54
  • Published

useful-value

useful work around for existential getting/setting values in nested Objects

  • v0.0.4
  • 19.86
  • Published

env-to-object

Maps environment variables to a configuration object.

  • v1.1.0
  • 19.24
  • Published

cli-types

Type validation and conversion

  • v0.1.2
  • 18.55
  • Published

confine

Simple JSON schema implementation designed to be used for JSON configuration files

  • v3.1.0
  • 18.55
  • Published

isnumber-js

A native module for effectively validating if a value is type Number.

  • v1.0.8
  • 18.20
  • Published

ensurism

A validation and conditional assignment utility belt

  • v0.7.0
  • 17.66
  • Published

qc-to_num

A simple utility to convert various values to a JavaScript number.

  • v1.0.2
  • 17.51
  • Published

cajole

coax data into formats

  • v0.1.0
  • 16.69
  • Published

qc-to_bool

A simple utility to convert various values to a JavaScript boolean.

  • v1.1.2
  • 15.95
  • Published

@dylan/coerce

Change values on an object based on keywords or a key map.

  • v0.2.2
  • 15.69
  • Published

qc-to_int

A simple utility to convert various values to a JavaScript number that is also an integer.

  • v1.0.1
  • 14.79
  • Published

ts-is-number

The ts-is-number a utility npm package that checks if a given input is a valid finite number or a string that can be converted to a valid finite number.

    • v1.1.0
    • 14.62
    • Published

    qc-to_date

    A simple JavaScript utility to convert various value to a Date.

    • v1.0.2
    • 12.93
    • Published

    autocoerce

    A tiny library that automatically converts JSON fields to numbers or dates

    • v1.0.3
    • 12.64
    • Published

    @resolute/coerce

    Coerce input to types and formats with sanitizers and validators.

    • v0.0.6
    • 11.84
    • Published

    coerce-tabular

    An object stream that coerces tabular data to numbers

    • v1.0.1
    • 11.60
    • Published

    qc-to_immutable_date

    A simple JavaScript utility to convert various values to an ImmutableDate.

    • v1.0.1
    • 10.78
    • Published

    coerce-number

    Coerce a numeric string value into a Number

    • v1.0.1
    • 8.90
    • Published

    castaway

    cast JS objects to a specified schema, ahoy!

    • v0.1.1
    • 8.90
    • Published

    coerce-pattern

    Coerces values into a pattern

    • v1.0.4
    • 8.28
    • Published

    is-number-g

    Returns true if the value is a number. comprehensive tests.Study from jonschlinkert/is-number

    • v1.0.0
    • 6.05
    • Published

    @daminort/data-caster

    A tool for cast and coerce data from one format to another

    • v0.1.2
    • 5.93
    • Published

    @compit/json-deep-coerce

    Deeply converts (coerces) a Json object to specified types via a mapping

    • v0.0.4
    • 4.97
    • Published

    vedas

    A hackable, extendable, functionally-composable way to go about dealing with wrangling types in JavaScript. Auto-casting, coercion, and type inference for the Alice in WOnderland world that is JS runtime.

    • v1.0.10
    • 4.50
    • Published

    ullamofficiis

    env value to JS value, check env val is boolean or others

    • v1.0.0
    • 4.49
    • Published

    @package/value

    useful work around for existential getting/setting values in nested Objects

    • v0.0.16
    • 4.49
    • Published

    supposedly

    A library to coerce values at run-time.

    • v6.0.2
    • 2.93
    • Published