Skip to content

wraithan/sparkfun-lookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sparkfun-lookup

Very simple library to get a product's data from sparkfun given an ID or part number.

var lookup = require('sparkfun-lookup')

lookup({id: 97, part: 'COM-00097'}, function(err, product, htmlUrl, jsonUrl) {
  if (err) {
    console.error(err)
    return
  }
  console.log('%s: %s', product.sku, product.name)
})

You only need id or part, if both are provided, it makes sure they reference the same part.

If you provide part it will check product.sku against it to make sure that it is actually the one you meant.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published