New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

psy-extract

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

psy-extract

HTML Extractor module

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

This module extract the content of a HTML document.

Install

To install this module with npm, please run the following command:
     npm install --save psy-extract
 

Usage

    const extractor = require('psy-extract');
    const extract = extractor(HTML);
 

Result

{
    title: <String> The document title from the <title> tag.
    lang:<String> The document language (if present in a meta tag)
    variant:<String> The document language variant (if present in a meta tag)
    text:<String> The extracted document content. <p> and <h[n]> 
                  tags are replaced by two linebreak characters, the <br> tag is 
                  replaced by a single linebreak character.
}

© 2019 by PSYfiers AG

This program is the property of PSYfiers AG,
Sumpfstrasse 5
CH-6312 Steinhausen
All Rights Reserved

Keywords

FAQs

Package last updated on 16 Apr 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc