A basic link to your Twitter built with base-element
$ npm install --save base-twitter-link
var TwitterLink = require('base-twitter-link')
new TwitterLink().toString('bendrucker')
<a href="https://twitter.com/bendrucker" rel="me" title="Follow me on Twitter @bendrucker">@bendrucker</a>
Type: HTMLElement
The optional HTML element to append to.
Required
Type: string
/ object
Your username. Optionally, pass an object with properties for the <a>
element like title
to override the defaults.
Same signature as link.render
, returning an html string instead of vdom.
MIT © Ben Drucker