Gathering detailed insights and metrics for node-resque-data
Gathering detailed insights and metrics for node-resque-data
Gathering detailed insights and metrics for node-resque-data
Gathering detailed insights and metrics for node-resque-data
npm install node-resque-data
Typescript
Module System
Min. Node Version
Node Version
NPM Version
67.3
Supply Chain
94.8
Quality
72.9
Maintenance
100
Vulnerability
98.9
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
2 Stars
71 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Sep 19, 2022
Latest Version
0.0.17
Package Id
node-resque-data@0.0.17
Unpacked Size
31.17 kB
Size
9.31 kB
File Count
17
NPM Version
7.6.0
Node Version
15.11.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
This package can be used to grab node-resque data such as queue lengths and the number of scheduled jobs outstanding.
It can also be used to visualise node-resque data via express middleware.
1npm install node-resque-data
View raw queue information
1const {Queue} = require('node-resque-data') 2 3const config = { 4 port: 6379, // Optional - defaults to 6379 5 host: 'localhost', // Optional - defaults to 'localhost' 6 password: "redis-pw", 7 db: 0, // Optional - defaults to 0 8 family: 4, // Optional - defaults to 4 for IPv4 or 6 for IPv6 9 queues: ['nameOfQueue1', 'nameOfQueue2', 'nameOfQueue3'], 10 namespace: 'beepbop', // Optional - defaults to 'resque' 11}; 12 13const result = await Queue.queueData(config); 14console.log(result)
example output
1{ 2 queues: [ 3 { queue: 'nameOfQueue1', num: 190 }, 4 { queue: 'nameOfQueue2', num: 12 }, 5 { queue: 'nameOfQueue3', num: 207 }, 6 ], 7 jobs: { processed: '8302', failed: '12', failing: 0 } 8}
view queue information using .then
1Queue.queueData(config).then((result) => { 2 console.log(result) 3});
view schedule information
1const result = await Queue.scheduledData(config); 2console.log(result)
Example output:
1{ 2 scheduledJobs: 2 3}
include more information about the scheduled jobs
1const options = { 2 includeJobDetails: true 3}; 4 5const result = await Queue.scheduledData(config, options); 6console.log(result)
Example output:
1{ 2 scheduledJobs: 2, 3 scheduledJobsDetails: [ 4 { 5 class: 'subtract', 6 queue: 'nameOfQueue1', 7 args: [ 2, 1 ], 8 runTime: 2021-08-15T19:36:27.000Z 9 } 10 ] 11}
The below snippet will display the same example output displayed above but this time to an express route you specify.
1const {Queue} = require('node-resque-data') 2 3const config = { 4 queues: ['nameOfQueue1', 'nameOfQueue2', 'nameOfQueue3'], 5}; 6 7const options = { 8 rawJSON: true 9}; 10 11// add route via express middleware 12app.use('/some-route', Queue.serve, Queue.setup(config, options));
To acheive this simply remove the {rawJSON: true}
object from the queue.setup
function or even set it to false
This will display the node-resque queue data in a bar and pie chart.
Custom settings can be added by passing additional keys into the options
object.
1const options = { 2 rawJSON: false, 3 customTitle: 'Your Custom title', 4 customHeader: 'Your Custom header value', 5}; 6 7app.use('/some-route', Queue.serve, Queue.setup(config, options));
Custom option fields:
rawJSON
: boolean field, that determines if the page displays a raw JSON display of queue lengths or a visual display.customTitle
: Allows you to customise the browser tab titlecustomHeader
: Allows you to customise the text shown in the headerCustom CSS can be added by passing a third parameter into the setup
function.
This will allow you to totally change the look and feel of the UI
1const customCss = ` 2 body { 3 color: red; 4 font-size: 8px; 5 }; 6`; 7 8app.use('/some-route', Queue.serve, Queue.setup(queueUiConfig, options, customCss));
npm run test
display linting warnings and errors
npm run lint
fix linting warnings and errors
npm run lint:fix
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More