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.
Useful tasks to lint, minify, and deploy assets.
$ npm install gear-lib
new Queue({registry: 'gear-lib'})
.read(['foo.js', 'bar.js', 'baz.js'])
.concat()
.jslint({config: {nomen: true}})
.jsminify()
.s3({name: 'foobarbaz.js', client: {
key: '<key>',
secret: '<secret>',
bucket: 'gearjs'
}})
.run();
Lint Javascript files.
Arguments
Example
.jslint({config: {nomen: true}})
Lint Javascript files.
Arguments
Example
.jshint({config: {browser: true, eqeqeq: true}})
.jshint({configFile: '.jshintrc'})
Minify Javascript files.
Arguments
Example
.jsminify()
Lint CSS files.
Arguments
Example
.csslint({config: {'duplicate-properties': true}})
Minify CSS files.
Aliased as less()
Example
.cssminify()
// Compile LESS stylesheets without minifying
.less({compress: false})
Read files using wildcards. See Glob package
Arguments
Example
.glob({
pattern: "*.js"
})
Deploy file to S3.
Arguments
Example
.s3({name: 'foobarbaz.js', client: {
key: '<key>',
secret: '<secret>',
bucket: 'gearjs'
}})
Move one or more files to a destination.
Arguments
Example
.dest('path/of/destination')
// With more options
.dest({
dir: 'path/of/destination',
base: 'path/of'
})
FAQs
Collection of common Gear.js tasks
The npm package gear-lib receives a total of 18,312 weekly downloads. As such, gear-lib popularity was classified as popular.
We found that gear-lib 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.