Socket
Book a DemoInstallSign in
Socket

import-href

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

import-href

Imperatively import an HTML document.

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

import-href

Imperatively import an HTML document.

Install

$ npm install --save import-href

Usage

var importHref = require('import-href');

importHref('http://example.com/meow-component.html',
						function onLoad(){},
						function onError(){});

API

importHref(href, onload, onerror)

href

URL

Required
Type: string

href URL that needs to be imported.

onload

onload callback

Type: function

Callback function which will be executed after load

onerror

onerror callback function

Type: function

Callback function which will be executed if there is an error

License

MIT © hemanth.hm

Keywords

html

FAQs

Package last updated on 03 Jun 2015

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