1.0.3 • Published 2 years ago

tax-validator v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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);

Licence

MIT