
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
lezer-html
Advanced tools
This is an HTML grammar for the lezer parser system.
The code is licensed under an MIT license.
This package exports two bindings:
parser
: Parser
The parser instance for the basic HTML grammar.
configureHTML
(tags: {
tag: string,
attrs?: (attrs: {[attr: string]: string}) => boolean,
parser?: Parser,
parseNode?: (input: InputStream, start: number) => Tree
}[]): Parser
Create a new parser instance which overrides the way the content of
some tags is parsed. Each override is an object with a tag
property
holding the (lower case) tag name to override, and an optional attrs
predicate that, if given, has to return true for the tag's attributes
for this override to apply.
The parser
or parseNode
property describes the way the tag's
content is parsed. One or zero of these should be specified (zero
means don't parse, simply treat as plain text). See also
NestedGrammarSpec
in the lezer package.
FAQs
lezer-based HTML grammar
We found that lezer-html 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.