Socket
Socket
Sign inDemoInstall

divclip

Package Overview
Dependencies
3
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    divclip

Extricate element from DOM by selector


Version published
Maintainers
1
Install size
176 kB
Created

Readme

Source

divclip

Extricate element from DOM by selector

derived and augmented from htmlclipper by Florentin Sardan

  • ES5 compliant
  • scoped CSS
  • use external SHA256
  • convert relative a href to absolute URL
  • wrapped for browserify/require()

example

var divclip = require("divclip");
var html    = divclip.bySel(".article-body");
console.log(html);

Tested with NodeJS 0.10.28 and Firefox30+

references

  • htmlclipper by Florentin Sardan
  • SnappySnippet by Konrad Dzwinel
  • http://stackoverflow.com/questions/4911338/tools-to-selectively-copy-htmlcssjs-from-existing-sites

Keywords

FAQs

Last updated on 19 Jun 2014

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