@miyauci/is-valid

A pure functional validator with composite function and validation utilities

Usage no npm install needed!

<script type="module">
  import miyauciIsValid from 'https://cdn.skypack.dev/@miyauci/is-valid';
</script>

README

logo image

is-valid

A pure functional validator with composite function and validation utilities

test GitHub release deno land nest badge deno doc deno version node support version bundle size npm download

dependencies Status codecov Codacy Badge npm type definitions Commitizen friendly Gitmoji semantic-release License: MIT


:sparkles: Features

  • :zap: Multi runtime support (Deno, Node.js and Browsers)
  • :books: Pure TypeScript and provides type definition
  • :earth_americas: Universal module, providing ES modules and UMD
  • :package: Optimized, super slim size
  • :page_facing_up: TSDoc-style comments

Package name

Deno: is-valid (deno.land, nest.land)

Node.js: @miyauci/is-valid (npm)

:green_heart: Supports

The TypeScript version must be 4.1.0 or higher.

This project provide ES modules and UMD. The range supported by both is different.

ES modules

Limit support to the latest environment to reduce the bundle size.

| Deno
Deno | Node.js
Node.js | IE / Edge
Edge | Firefox
Firefox | Chrome
Chrome | Safari
Safari | iOS Safari
iOS Safari | Samsung
Samsung | Opera
Opera | | - | -- | - | -- | - | - | - | -- | -- | | ^1.6.0 | ^14.16.0 | last 2 versions | last 2 versions | last 2 versions | last 2 versions | last 2 versions | last 2 versions | last 2 versions |

UMD

Browser is supporting since IE11.

| Node.js
Node.js | IE / Edge
IE / Edge | Firefox
Firefox | Chrome
Chrome | Safari
Safari | iOS Safari
iOS Safari | Samsung
Samsung | Opera
Opera | | - | - | - | - | - | - | - | - | | ^6.17.0 | IE11 / ^16 | ^60 | ^61 | ^10.1 | ^10.3 | ^8.2 | ^48 |

Compared to ES modules, UMD has a bundle size increase of about 2.5x. Recommend using ES modules as much as possible.

:handshake: Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues.

:seedling: Show your support

Give a ⭐️ if this project helped you!

:bulb: License

Copyright © 2021-present TomokiMiyauci.

Released under the MIT license