This package has been deprecated

Author message:

3rd party service no longer available. Package deprecated

sitedata

2.0.0 • Public • Published

sitedata

Node wrapper for the SiteData.io API.

Promise Example

const SiteData = require("sitedata")
const sitedata = new SiteData({ token: "YOUR_API_TOKEN" })

sitedata.metric
  .index({ url: "example.com", "match": "contains" })
  .then(metrics => {
    console.log(metrics)
  })
  .catch(e => {
    console.log(e)
  })

Async/Await Example

const SiteData = require("sitedata")
const sitedata = new SiteData({ token: "YOUR_API_TOKEN" })

;(async function() {
  try {
    const metric = await sitedata.metric.index({ url: "example.com" })
    console.log(metric)
  } catch(e) {
    console.log(e)
  }
})()

Tests

To run the test suite, first install the dependencies, then run npm test:

$ npm install
$ npm test

Package Sidebar

Install

npm i sitedata

Weekly Downloads

9

Version

2.0.0

License

ISC

Unpacked Size

12 kB

Total Files

3

Last publish

Collaborators

  • iamchristopher
  • jaygoodfellow