is-trademarked
Check if a word is trademarked.
Last updated 5 years ago by kchan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install is-trademarked 
SYNC missed versions from official npm registry.

is-trademarked NPM version NPM downloads Build Status

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'
  }
]

Related

License

MIT © EGOIST

Current Tags

  • 1.2.1                                ...           latest (5 years ago)

4 Versions

  • 1.2.1                                ...           5 years ago
  • 1.2.0                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |