npm

npm’s 2019 JavaScript ecosystem survey analysis is now available! Get your copy here »

embed-widget

0.9.0 • Public • Published

📦 Embed widget

Install the library as a dependency:

npm install embed-widget

Or, if you're using Yarn:

yarn add embed-widget

Then import the library:

import widget from "embed-widget";

And initialize it with an optional selector:

const embed = new widget("https://example.com", "Button text!");

You can also use a CDN:

<script src="https://unpkg.com/embed-widget"></script>

Keywords

none

install

npm i embed-widget

Downloadsweekly downloads

3

version

0.9.0

license

Unlicense

last publish

collaborators

  • avatar
Report a vulnerability