npm.io
1.0.5 • Published 7 years ago

brand-validator

Licence
ISC
Version
1.0.5
Deps
0
Size
33 kB
Vulns
0
Weekly
0

Brand Validator

Module to validate if your text have any registered or famous brand.

Example

const validator = require('brand-validator');

async function test() {
    try {
        var text = "Apple"; // Famous Brand (Apple)
        let brandFound = await validator.validateText(text);
        console.log(brandFound);
    } catch (error) {
        console.log(error);
    }
}

test(); // true