Socket
Socket
Sign inDemoInstall

discord-arg-validator

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    discord-arg-validator

A type validator for arguments for your discord bot


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
5.27 kB
Created
Weekly downloads
 

Readme

Source

discord-arg-validator

Argument type validator for Discord bots

Installation

npm i discord-arg-validator

Usage

const { validate, Number, YesNo, String } = require("discord-arg-validator");

validate(["foo", "bar", "2", "yes", "no"], [String, String, Number, YesNo, YesNo]) //true
validate(["foo", "bar", "23"], [Number, Number, YesNo]) // TypeError

Keywords

FAQs

Last updated on 29 Sep 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc