
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
htmltemplate-parser
Advanced tools
HTML::Template-like templating language parser, that can parse a pragmatic subset of HTML/TMPL tag combinations (see #1) and Perl expressions.
npm install htmltemplate-parser
$ htmltemplate-parser --help
Usage: htmltemplate-parser [options]
Options:
--path file to parse [string] [required]
--pretty output with colors [boolean]
--ignore-html treat HTML tags as text [boolean]
parse(string, options)
methodParse the supplied template string and return the corresponding AST. Available options:
ignoreHTMLTags
, (default false
) – do not attempt to parse HTML tags, treat them as text,reducePositionLookups
, (default false
) – do not calculate line, column and offset for most nodes,
this would speedup parsing of large files.var fs = require('fs');
var inspect = require('util').inspect;
var parser = require('htmltemplate-parser');
var tmpl = fs.readFileSync('./example.inc', 'utf8');
var ast = parser.parse(tmpl);
console.log(inspect(ast, { colors: true, depth: Infinity }));
FAQs
HTML::Template Parser
The npm package htmltemplate-parser receives a total of 63 weekly downloads. As such, htmltemplate-parser popularity was classified as not popular.
We found that htmltemplate-parser 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.
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.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.