Nascent Prototype Metaverse

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

    0.1.1 • Public • Published

    Valdie

    CI npm NPM Downloads

    A TypeScript and JavaScript Validation Library that works 🔨 - It doesn't use any libraries 🎉 - It's easy to use 💪 - It's easy to extend 📦

    You probably never knew you needed it but here you go.

    Getting started

    npm i valdie

    using deno

    import valdie from 'https://cdn.skypack.dev/valdie'

    Documentation

    1. isEmail
    2. isInteger
    3. isString
    4. isURL

    They are two ways of consuming our api

    import { isEmail } from "valdie"
    
    
    let { message,success } = isEmail("test@gmail.com")
    import validator from "valdie"
    
    let { message,success } = validator("mystring").isString().isEmail()

    Using builder method

    import validator from "valdie"
    let {message,success} = valdie(20).isURL().isTel().validate()

    For contributors

    Doors are open for any kind of contribution PRs and Issues, before submittin your PR or Issue to take a look in our CONTRIBUTOR_COVENANT and CONTRIBUTING_PRACTICES

    To easy the review, describe your PR. You can find the PR description templete in our CONTRIBUTOR_COVENANT

    Maintainers

    Licence

    The project is under MIT Licence 2021

    Install

    npm i valdie

    DownloadsWeekly Downloads

    4

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    14.8 kB

    Total Files

    25

    Last publish

    Collaborators

    • makuza
    • patrickniyogitare