embed-widget
TypeScript icon, indicating that this package has built-in type declarations

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>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.9.0
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.9.0
    8

Package Sidebar

Install

npm i embed-widget

Weekly Downloads

8

Version

0.9.0

License

Unlicense

Unpacked Size

28.4 kB

Total Files

13

Last publish

Collaborators

  • anandchowdhary