
Research
Security News
Malicious npm Packages Target BSC and Ethereum to Drain Crypto Wallets
Socket uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.
tree-sitter-hygen-template
Advanced tools
Tree-sitter grammar for Hygen templates.
It extends the tree-sitter-embedded-template
grammar.
embedded-template
: highlight of ejs
tagsbash
(optional):
highlight of metadata.value
when metadata.key
is sh
javascript
(optional): highlight of code
nodeshygen.nvim
: plugin that integrates
this grammar to your Neovim
configuration.To be added
To be added
You can get the built files from the release
branch. If you
have specific instructions for your editor, PR's are welcome.
Thanks to content
node of tree-sitter-embedded-template
grammar, dynamic injections can be attached to
template body.
To make it easier to understand which parser
will be injected and which
filetype is used in template body
, the following pattern is recommended to
implement this grammar:
<file-name>.(ext).hygen
To implement dynamic injection, is recommended to create a predicate/directive with the following name:
#inject-hygen-tmpl!
[!NOTE] The creation of this predicate/directive varies for each editor
FAQs
Hygen Template grammar for tree-sitter
We found that tree-sitter-hygen-template demonstrated a healthy version release cadence and project activity because the last version was released less than 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 uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.
Security News
TC39 advances 9 JavaScript proposals, including Array.fromAsync, Error.isError, and Explicit Resource Management, which are now headed into the ECMAScript spec.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.