Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

localinclude

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

localinclude

Add a fragment of local code into any page on the web.

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

localinclude

Test your local HTML include with any page on the Internet

Install

Localinclude is a commmand line tool written in NodeJS, so you need to install it globally from npm.

npm install -g localinclude

Usage

You can run localinclude from your project directory, here's a quick demo:

echo '<h1>LOCALINCLUDE is awesome!!!</h1>' > example.inc
localinclude --url https://www.google.com --dompos '#lga' --include example.inc

Once this is running visit the URL the terminal output reports and you'll see the Google homepage with the "LOCALINCLUDE is awesome!!!" written into it.

Parameters explained

To use localinclude you need to provide 3 parameters:

  • --url The target page on the website you want to use. This needs to be available from where you are (so you can use localinclude with intranets).
  • --dompos A CSS selector string that tells localinclude where in the page to put your include.
  • --include A path to the file you want to include into the target page.

FAQs

Package last updated on 13 Jan 2017

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