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.
bugzilla-readable-status
Advanced tools
Given the properties of a bug in bugzilla.mozilla.org, generate an english language readable status message.
Generate readable, english language, status messages from properties of bugs in bugzilla.mozilla.org.
The module exposes a single method, readable,
which can be called in a variety of ways:
Clone repo to local.
npm install; npm test; npm run demo
Install browserify
npm install -g browserify
Run the project's bundle script.
npm run bundle
And load the resulting file into your web page.
<script src="bugzilla-readable-status.js"></script>
To build a minified version of the script,
npm run bundle-min
and then include
<script src="bugzilla-readable-status-min.js"></script>
in your project. A corresponding source map is generated as well.
var readable = import('bugzilla-readable-status').readable;
var status = readable({ id: NNNNNN, status: 'NEW', … });
// => 'BUG STATUS'
var statuses = readable([
{ id: NNNNNN, status: 'FIXED' … }.
{ id: MMMMMM, status: 'NEW' … },
…
]);
// => { "statuses": [
{ "id": NNNNNN, "status": "BUG STATUS" },
{ "id": MMMMMM, "status": "BUG STATUS" },
…
]}
var emptyArray = readable([]);
// => { "result": [] }
Errors are returned as objects:
{ "error": "ERROR STRING" }
If there's an unrecoverable error while trying to parse a bug, return CANNOT_PARSE_BUG
.
If there are no usable properties or the module can't generate, NO_STRING_FOR_BUG
If multiple bugs are requested, and errors are found, the errors are included in the reponse object:
{ "statuses": [
{ "id": "BUG ID",
"status": "BUG STATUS" },
…
{ "id": "BUG ID WITH ERROR",
"error": "ERROR MESSAGE" }
…
]}
FAQs
Given the properties of a bug in bugzilla.mozilla.org, generate an english language readable status message.
The npm package bugzilla-readable-status receives a total of 2 weekly downloads. As such, bugzilla-readable-status popularity was classified as not popular.
We found that bugzilla-readable-status 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.