Socket
Socket
Sign inDemoInstall

mercury-parser

Package Overview
Dependencies
4
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mercury-parser

API Wrapper for Mercury Web Parser


Version published
Weekly downloads
3.4K
increased by3.48%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Mercury Parser

A Simple NodeJS Wrapper for the Mercury Web Parser API

Installation

npm install mercury-parser

If using yarn

yarn add mercury-parser

Usage

// Require the library, passing your API key generated on [Mercury Web Parser API](https://mercury.postlight.com/web-parser/)  dashboard
const mercury = require('mercury-parser')(API_KEY);

Examples

mercury.parse('https://some-url').then(response =>
  console.log(response)
  }).catch(err => {
    console.log('Error: ', err);
})
// Available attributes 

response.title
response.author
response.date_published
response.dek
response.lead_image_url
response.content
response.next_page_url
response.url
response.domain
response.excerpt
response.word_count
response.direction
response.total_pages
response.rendered_pages

Keywords

FAQs

Last updated on 29 Mar 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc