@miyauci/is-valid
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-beta.1 • Public • Published

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


Features

  • Multi runtime support (Deno, Node.js and Browsers)
  • 📚 Pure TypeScript and provides type definition
  • 🌎 Universal module, providing ES modules and UMD
  • 📦 Optimized, super slim size
  • 📄 TSDoc-style comments

Package name

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

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

💚 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.

DenoDeno Node.jsNode.js IE / EdgeEdge FirefoxFirefox ChromeChrome SafariSafari iOS SafariiOS Safari SamsungSamsung OperaOpera
^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.jsNode.js IE / EdgeIE / Edge FirefoxFirefox ChromeChrome SafariSafari iOS SafariiOS Safari SamsungSamsung OperaOpera
^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.

🤝 Contributing

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

🌱 Show your support

Give a ⭐️ if this project helped you!

💡 License

Copyright © 2021-present TomokiMiyauci.

Released under the MIT license

Dependencies (0)

    Dev Dependencies (15)

    Package Sidebar

    Install

    npm i @miyauci/is-valid

    Weekly Downloads

    0

    Version

    1.0.0-beta.1

    License

    MIT

    Unpacked Size

    17.3 kB

    Total Files

    9

    Last publish

    Collaborators

    • miyauci