1.0.3 • Published 4 years ago
tax-validator v1.0.3
Validate Tax Percentage Using Tax Validator
Jai Hind 🇮🇳
You can validate the tax percentage using simple npm package. Pass the tax value to validate() function.
Your tax string must contain % symbol. If you are reading a number then concatenate % to the number and convert to the string and pass it to the validate() function.
100>taxValue>0Installation
npm install tax-validatorUsage
import {validateTax} from "tax-validator";
let validatedTaxValue=validateTax("69%");
console.log(validatedTaxValue);