JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q61118F
  • License MIT

Converts all websites to JSON data

Package Exports

  • website-to-json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (website-to-json) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Website to json converter (wtj)

The mission of this tool is to convert each website to understandable JSON.

Installation

$ npm install website-to-json --save

Getting started

Basic

var wtj = require('website-to-json')

wtj.extractUrl('twitter.com/itemsapi')
.then(function(res) {
  console.log(res);
})

Full options

wtj.extractUrl('twitter.com/itemsapi', {
  recipes: __dirname + '/recipes.js',
  timeout: 3000,
  type: 'request'
})
.then(function(res) {
  console.log(res);
})

CLI

$ wtj twitter.com/itemsapi

To be continued!