Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
tweet-html
Advanced tools
Readme
reparse tweets returned by twitter API to HTML
Install with npm:
$ npm install tweet-html
Parse tweet entities contained in tweet object returned by one of the Twitter API calls.
tweet
- tweet objectusername
-opts
- optional - at the moment only formatDate
is supported; if not provided created_at
dates are formated to display 3 hours ago or a year agoIn addition to usual suspects (user mentions, hashtags, urls) it also parses and embeds vine, instagram, youtube and vimeo links.
Given:
{
"id_str": "413684211087048704",
"created_at": "Thu Dec 19 14:56:16 +0000 2013",
"text": "Look for the East Byrneside boarder cross course this weekend! https://t.co/zbGXyOjmlr",
"entities": {
"urls": [
{
"url": "https://t.co/zbGXyOjmlr",
"expanded_url": "https://vine.co/v/h0UBzVLzA5O",
"display_url": "vine.co/v/h0UBzVLzA5O",
"indices": [
63,
86
]
}
]
}
}
Renders:
<a href="https://twitter.com/stratton/status/413684211087048704" target="_blank" class="date">
'3 days ago'
</a>
<div class="text">Look for the East Byrneside boarder cross course this weekend!</div>
<iframe src="https://vine.co/v/h0UBzVLzA5O/embed/simple" class="video vine"></iframe>
Check tests for more examples.
MIT
FAQs
reparse tweets returned by twitter API to HTML
The npm package tweet-html receives a total of 2 weekly downloads. As such, tweet-html popularity was classified as not popular.
We found that tweet-html 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
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.