🧮 Input Satinizer

Sanitize and validate the formats of an input.

Do you want to protect yourself against SQL injection and other code injections?

Use our input sanitizer tool.

Easily validate different types of data.

Usage

import DymoAPI from "dymo-api";

const dymo = new DymoAPI();

console.log(await dymo.satinize("21/08/2024"));

Response

All values in formats and includes are Booleans.

{
  "input": "21/08/2024",
  "formats": {
    "ascii": true,
    "bitcoinAddress": false,
    "cLikeIdentifier": false,
    "coordinates": false,
    "crediCard": false,
    "date": true,
    "discordUsername": false,
    "doi": false,
    "domain": false,
    "e164Phone": false,
    "email": false,
    "emoji": true,
    "hanUnification": false,
    "hashtag": false,
    "hyphenWordBreak": false,
    "ipv6": false,
    "ip": false,
    "jiraTicket": false,
    "macAddress": false,
    "name": false,
    "number": false,
    "panFromGstin": false,
    "password": true,
    "port": false,
    "tel": false,
    "text": true,
    "semver": false,
    "ssn": false,
    "uuid": false,
    "url": false,
    "urlSlug": false,
    "username": true
  },
  "includes": {
    "spaces": false,
    "hasSql": false,
    "hasNoSql": false,
    "letters": false,
    "uppercase": false,
    "lowercase": false,
    "symbols": true,
    "digits": true
  }
}

Parameters

ParameterTypeRequiredDescription
inputStringRefers to the string to be validated