egoist / Is Trademarked
Licence: mit
Check if a word is trademarked.
Stars: ✭ 35
Programming Languages
javascript
184084 projects - #8 most used programming language
is-trademarked
Check if a word is trademarked.
Install
$ npm install --save is-trademarked
Usage
const isTrademarked = require('is-trademarked')
// not trademarked yet
isTrademarked('unicorns')
.then(trademarked => {
console.log(trademarked) //=> false
})
// trademarked
// return an array which contains a single item
isTrademarked('apple')
.then(trademarks => {
if (trademarks) {
trademarks.forEach(t => console.log(t.wordmark))
}
})
// wildcard
// return an array which contains multiple items
// it searches `macbook` `macbook air` etc...
isTrademarked('mac*')
.then(/* your code */)
API
isTrademarked(input, opts)
input
Type: string
The term to search. Support wildcard by using *
symbol.
opts
Type: object
token
API token to retrieve data from markerapi.com
, sign up to get one here for free.
return
[
{
wordmark: 'NAME',
reg: Tue May 20 2008 00:00:00 GMT+0800 (CST),
description: 'General feature magazines',
sn: '77119087',
serviceCode: 'GS0161'
}
]
Or return false
when it's not trademarked.
Related
- is-trademarked-cli - CLI for this module
License
MIT © EGOIST
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].