npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

twitter-user

0.3.0 • Public • Published

<twitter-user>

Version Status macOS Build Status Linux Build Status Windows Build Status Dependency Status

Twitter User Web Component

Examples

Live demo

Example Example with description

Install

Polyfill tags if you need them. This will include ShadowDOM and Custom Elements support.

<script src="https://unpkg.com/@webcomponents/webcomponentsjs@latest/bundles/webcomponents-sd-ce.js"></script>

Loading this component. It would be a good idea to use a specific version instead of latest.

<script src="https://unpkg.com/twitter-user@latest/dist/twitter-user.min.js"></script>

Usage

User must be the full response of GET users/show.

<twitter-user></twitter-user>

<twitter-user user="{\"id_str\":\"12\",...}"></twitter-user>
document.querySelector('twitter-user').user = { "id_str": "12", ... };

<twitter-status>

Looking for a way to embed tweets? Check out <twitter-status>.

License

TwitterUser is released under an MIT license.

TwitterUser is not affiliated Twitter, Inc.

Built, tested, and published with Nutmeg.

install

npm i twitter-user

Downloadsweekly downloads

79

version

0.3.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability