tax-validator
v1.0.3
Published
## Jai Hind 🇮🇳
Downloads
4
Maintainers
Readme
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>0
Installation
npm install tax-validator
Usage
import {validateTax} from "tax-validator";
let validatedTaxValue=validateTax("69%");
console.log(validatedTaxValue);