Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
tweet-tweet
Advanced tools
A no-nonsense api for posting tweets.
This is only for updating your Twitter status. This does not get tweets, or stream search results.
Images and videos are not supported.
var TweetTweet = require('tweet-tweet')
var tweet = TweetTweet({
consumerKey: '...',
consumerSecret: '...',
accessToken: '...',
accessTokenSecret: '...'
})
tweet('Never teach someone how to cartwheel beside a lake. #lessonlearned')
setTimeout(function () {
tweet('That awkward moment when you wake up... Said no one ever.')
}, 60 * 1000)
var TweetTweet = require('tweet-tweet')
TweetTweet(auth)
If you don't know how to get the tokens and secrets from Twitter, see AUTHENTICATION.md for detailed instructions.
auth
is an object with the following properties, all of which are required:
consumerKey
consumerSecret
accessToken
accessTokenSecret
tweet()
.tweet(status, [cb])
status
is a string or an object
status
- Required. The text of your status update. E.g. 'i love my cat. #cats'
in_reply_to_status_id
- The ID of an existing status that the update is in reply to. Note that the author must be referenced in the status
. E.g. '@twitter'
possibly_sensitive
- If the tweet contains nudity, violence, etc. set this to true
. Defaults to false
.cb(err, response)
is an optional callback function. If no callback is given, errors will be thrown.
err
is an Error object or null.response
is the parsed JSON response. See a sample response in the Twitter API under the Example Result section.// Status string vs. status object
tweet('i like Twitter')
// Equivalent
tweet({ status: 'i like Twitter' })
// Setting parameters
tweet({
status: 'not for weak stomachs: http://emergency-room-pictures.com',
possibly_sensitive: true
})
tweet({
status: 'Happy birthday @twitter!',
in_reply_to_status_id: '579328173764014080'
})
tweet('why is the sky blue?', function (err, res) {
if (err) throw err
else console.log(res)
})
tweet({
status: 'People comment "lol" even when they do not laugh.'
}, function (err, res) {
if (err) throw err
else console.log(res)
})
With npm do:
npm install tweet-tweet
FAQs
A no-nonsense api for posting tweets.
The npm package tweet-tweet receives a total of 153 weekly downloads. As such, tweet-tweet popularity was classified as not popular.
We found that tweet-tweet 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.