@doubco/wtf
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

WTF is this?

@doubco/wtf is a basic JS validation and helper library

Why?

We tried different packages while building our apps, eventually we find out either those are too big or to limited for us to use..

Installation

yarn add @doubco/wtf or npm install @doubco/wtf --save

Usage

import is from "@doubco/wtf" or import { isString } from "@doubco/wtf"

Available Helpers

Depends on how you import...

is.string(val) or isString(val)

is.object(val) or isObject(val)

is.date(val) or isDate(val)

is.fn(val) or isFunction(val)

is.array(val) or isArray(val)

is.float(val) or isFloat(val)

is.integer(val) or isInteger(val)

is.number(val) or isNumber(val)

is.regexp(val) or isRegExp(val)

is.boolean(val) or isBoolean(val)

is.empty(val) or isEmpty(val)

is.ISO8601(val) or isISO8601(val)

is.color(val) or isColor(val)

is.null(val) or isNull(val)

method names explain themselves...


Contribute

Pull requests are welcome and please submit bugs 🐛.

Contact

/@doubco/wtf/

    Package Sidebar

    Install

    npm i @doubco/wtf

    Weekly Downloads

    24

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    9.47 kB

    Total Files

    10

    Last publish

    Collaborators

    • berkaey