Nanometer Process Machine

    @keqingrong/validator
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.1 • Public • Published

    @keqingrong/validator

    npm version

    Utilities for validation and sanitization

    Installation

    # npm
    npm install @keqingrong/validator
    
    # yarn
    yarn add @keqingrong/validator

    Usage

    import { validateIdCardNumber } from '@keqingrong/validator';
    
    validateIdCardNumber('321280202101011234');

    API

    • validateIdCardNumberLegacy()
    • validateIdCardNumber() / sanitizeIdCardNumber()
    • validateSocialNumber() / sanitizeSocialNumber()
    • validateBankCardNumber()
    • validatePhoneNumber() / sanitizePhoneNumber()
    • sanitizeChineseCharacter()
    • sanitizeEmoji()
    • Emoji_RegExp

    License

    MIT © Qingrong Ke

    Install

    npm i @keqingrong/validator

    DownloadsWeekly Downloads

    0

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    32.5 kB

    Total Files

    13

    Last publish

    Collaborators

    • dearke