
Security News
Free Certified Patch for Critical Rails Active Storage Vulnerability
Socket has released a free Certified Patch for a critical Rails Active Storage vulnerability, giving developers time to upgrade to a secure Rails version.
solidity-parse
Advanced tools
A CLI for solidity-parser.
Parse a .sol file with solidity-parser. By default, the parsed AST is printed as JSON to stdout.
This CLI tool can be used in conjuction with text editor plugins to provide a rich editor environment for Solidity.
Install from npm:
npm install -g solidity-parse
Parse a file with location information attached to AST nodes:
solidity-parse --loc ERC20.sol > ast.json
Parse from stdin:
cat ERC20.sol | solidity-parse --loc - > ast.json
Other options are available. Use -h, which has been copied here:
solidity-parse <file>
Parse a .sol file with solidity-parser, an npm package maintained here:
https://github.com/solidity-parser/parser.
By default, the parsed AST is printed as JSON to stdout.
This CLI tool can be used in conjuction with text editor plugins to provide a
rich editor environment for Solidity.
Positionals:
file The .sol file that should be parsed. If a file is -, input will be read
from stdin. [string]
Options:
--version Show version number [boolean]
-l, --loc Add location information to each node, with start and stop
keys that contain the corresponding line and column
numbers. Column numbers start from 0, lines start from 1.
[boolean]
-t, --tolerant Collect syntax errors and place them in a list under the
key errors inside the root node of the returned AST.
[boolean]
-r, --range Add range information to each node, which consists of a
two-element array with start and stop character indexes in
the input. [boolean]
-o, --output Write AST to a file in JSON format. By default, the AST is
printed to stdout. [string]
-p, --pretty-print Pretty-print the JSON output [boolean]
-h, --help Show help [boolean]
FAQs
A CLI for solidity-parser
The npm package solidity-parse receives a total of 0 weekly downloads. As such, solidity-parse popularity was classified as not popular.
We found that solidity-parse 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.

Security News
Socket has released a free Certified Patch for a critical Rails Active Storage vulnerability, giving developers time to upgrade to a secure Rails version.

Security News
/Threat Research
A malicious Ruby gem runs a credential-stealing worm during installation, poisons AI coding tools, and can wipe files when a stolen GitHub token is revoked.

Security News
GitHub is tightening GitHub Actions security with new restrictions on privileged pull request workflows. Here's what changes and how maintainers are affected.