Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
pygments-hackasm-lexer
Advanced tools
.. image:: https://badge.fury.io/py/pygments-hackasm-lexer.svg :target: https://badge.fury.io/py/pygments-hackasm-lexer
Pygments
_ lexer for Nand2Tetris Hack Assembler
_ language.
Part of the languages used/developed in the Building a Modern Computer from First Principles
_ book.
The name of the lexer is hack_asm
so you can call it from pygmentize
like this:
::
pygmentize -l hack_asm -f html -O full test.asm
The recognize extension is .asm
but it is as well used by many other lexers (like, you know, other assemblers), so I recommend passing directly the lexer name.
The lexer is available in PyPI, just install using pip
:
::
pip install pygments-hackasm-lexer
And start using it.
.. _Pygments: http://pygments.org/ .. _Nand2Tetris Hack Assembler: http://www.nand2tetris.org/chapters/chapter%2004.pdf .. _Building a Modern Computer from First Principles: http://www.nand2tetris.org/`
FAQs
Pygments lexer for the Nand2Tetris Hack Assembler
We found that pygments-hackasm-lexer 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 researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.