Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
ngx-twitter
Advanced tools
`ngx-twitter` is an Angular component library that takes a Twitter tweet ID and uses the Twitter embedded script to embed the tweet in your page. For now, the components are:
ngx-twitter
is an Angular component library that takes a Twitter tweet ID and uses the Twitter embedded script to embed the tweet in your page. For now, the components are:
tweet
, which embeds a single tweet in the pagetweet-list
, which takes a list of IDs and loops over it and embeds each as a tweet
componentWhen the module loads, it loads the https://platform.twitter.com/widgets.js
script, and then when it's ready the tweets will be embedded in the page.
When using either tweet
or tweet-list
, there is an optional options
object that can be passed in. The options class has the following attributes:
public cards: string; // defaults to 'hidden'
public conversation: string; // defaults to 'none'
public theme: string; // defaults to 'light'
public linkColor: string; // defaults to '#55acee'
public align: string; // defaults to 'center'
public lang: string; // defaults to 'en'
public width: number; // defaults to 325
public dnt: boolean; // defaults to true
When the options are passed in to the script to embed the tweet, it looks at each attribute, and if an invalid option value is passed in, it defaults to the above values.
In future releases, Embedded Timelines, Moments, Direct Messages, and others will be implemented as well. If you'd like to contribute, submit an issue or a PR with the desired additions.
FAQs
`ngx-twitter` is an Angular component library that takes a Twitter tweet ID and uses the Twitter embedded script to embed the tweet in your page. For now, the components are:
We found that ngx-twitter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.