Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
gulp-twitter
Advanced tools
First, install gulp-twitter
as a development dependency:
npm install --save-dev gulp-twitter
Then, add it to your gulpfile.js
:
var gulp = require('gulp');
var twitter = require('gulp-twitter');
// Construct `oauth` config.
var oauth = {
consumerKey: process.env.CONSUMER_KEY,
consumerSecret: process.env.CONSUMER_SECRET,
accessToken: process.env.ACCESS_TOKEN,
accessTokenSecret: process.env.ACCESS_TOKEN_SECRET
};
gulp.task('tweetie', function () {
gulp.src('package.json')
.pipe(twitter(oauth, 'Watch me while I tweet this.'))
});
twitter(oauth, message)
Type: Object
Default: {}
OAuth credentials, i.e.
{
"consumerKey": "CONSUMER_KEY",
"consumerSecret": "CONSUMER_SECRET",
"accessToken": "ACCESS_TOKEN",
"accessTokenSecret": "ACCESS_TOKEN_SECRET"
}
Create a Twitter App and get OAuth credentials (if you haven’t already). Be careful, these tokens are like passwords so you should guard them carefully. For usage with Travis CI see the documentation on encryption keys.
Type: String
or Function
Default: ''
If you pass a Function
this will be passed a gulp-util.File Object
(see https://github.com/wearefractal/gulp-util/#new-fileobj) and should return a String
, e.g. function (file) {return 'gulp-tweeting ' + file.relative;}
.
FAQs
Make your build system tweet
The npm package gulp-twitter receives a total of 5 weekly downloads. As such, gulp-twitter popularity was classified as not popular.
We found that gulp-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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.