Gathering detailed insights and metrics for pug-error
Gathering detailed insights and metrics for pug-error
Gathering detailed insights and metrics for pug-error
Gathering detailed insights and metrics for pug-error
Pug – robust, elegant, feature rich template engine for Node.js
npm install pug-error
Typescript
Module System
Node Version
NPM Version
100
Supply Chain
81.7
Quality
78
Maintenance
100
Vulnerability
100
License
pug@3.0.3
Updated on May 24, 2024
pug-code-gen@3.0.3
Updated on May 24, 2024
pug-error@2.1.0
Updated on May 24, 2024
pug@3.0.2
Updated on Feb 28, 2021
pug-lexer@5.0.1
Updated on Feb 28, 2021
pug-runtime@3.0.1
Updated on Feb 28, 2021
JavaScript (78.47%)
Pug (14.98%)
HTML (5.98%)
TypeScript (0.49%)
CoffeeScript (0.04%)
Stylus (0.03%)
CSS (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
21,818 Stars
2,573 Commits
1,946 Forks
539 Watchers
11 Branches
248 Contributors
Updated on Jul 12, 2025
Latest Version
2.1.0
Package Id
pug-error@2.1.0
Unpacked Size
22.51 kB
Size
8.85 kB
File Count
7
NPM Version
6.14.16
Node Version
12.22.12
Published on
May 24, 2024
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
No dependencies detected.
Standard error objects for pug. This module is intended for use by the lexer, parser, loader, linker, code-generator and any plugins.
npm install pug-error
1var error = require('pug-error');
error(code, message, options)
Create a Pug error object.
code
is a required unique code for the error type that can be used to pinpoint a certain error.
message
is a human-readable explanation of the error.
options
can contain any of the following properties:
filename
: the name of the file causing the errorline
: the offending linecolumn
: the offending columnsrc
: the Pug source, if available, for pretty-printing the error contextThe resulting error object is a simple Error object with additional properties given in the arguments.
Caveat: the message
argument is stored in err.msg
, not err.message
, which is occupied with a better-formatted message.
1var error = require('pug-error'); 2 3var err = error('MY_CODE', 'My message', {line: 3, filename: 'myfile', src: 'foo\nbar\nbaz\nbash\nbing'}); 4// { code: 'PUG:MY_CODE', 5// msg: 'My message', 6// line: 3, 7// column: undefined, 8// filename: 'myfile', 9// src: 'foo\nbar\nbaz\nbash\nbing', 10// message: 'myfile:3\n 1| foo\n 2| bar\n > 3| baz\n 4| bash\n 5| bing\n\nMy message' } 11 12throw err;
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
Found 15/30 approved changesets -- score normalized to 5
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
35 existing vulnerabilities detected
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