Gathering detailed insights and metrics for yy-pug-lexer
Gathering detailed insights and metrics for yy-pug-lexer
Gathering detailed insights and metrics for yy-pug-lexer
Gathering detailed insights and metrics for yy-pug-lexer
npm install yy-pug-lexer
Typescript
Module System
Node Version
NPM Version
JavaScript (70.29%)
HTML (29.64%)
CoffeeScript (0.07%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
188 Commits
1 Watchers
4 Branches
1 Contributors
Updated on Apr 25, 2016
Latest Version
1.0.3
Package Id
yy-pug-lexer@1.0.3
Size
42.36 kB
NPM Version
3.3.12
Node Version
5.5.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
3
The pug lexer. This module is responsible for taking a string and converting it into an array of tokens.
npm install pug-lexer
1var lex = require('pug-lexer');
lex(str, filename, options)
Convert Pug string to an array of tokens.
filename
, if provided, is used in error handling.
options
can contain the following property:
plugins
(array): An array of plugins, in the order they should be applied.1console.log(JSON.stringify(lex('div(data-foo="bar")', 'my-file.pug'), null, ' '))
1[ 2 { 3 "type": "tag", 4 "line": 1, 5 "val": "div", 6 "selfClosing": false 7 }, 8 { 9 "type": "attrs", 10 "line": 1, 11 "attrs": [ 12 { 13 "name": "data-foo", 14 "val": "\"bar\"", 15 "escaped": true 16 } 17 ] 18 }, 19 { 20 "type": "eos", 21 "line": 1 22 } 23]
new lex.Lexer(str, filename, options)
Constructor for a Lexer class. This is not meant to be used directly unless you know what you are doing.
options
may contain the following properties:
interpolated
(boolean): if the Lexer is created as a child lexer for inline tag interpolation (e.g. #[p Hello]
). Defaults to false
.startingLine
(integer): the real line number of the first line in the input. It is also used for inline tag interpolation. Defaults to 1
.plugins
(array): An array of plugins, in the order they should be applied.MIT
No vulnerabilities found.
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
security policy file not detected
Details
Reason
no SAST tool detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-06-30
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