
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@herb-tools/formatter
Advanced tools
Auto-formatter for HTML+ERB templates with intelligent indentation, line wrapping, and ERB-aware pretty-printing.
Package: @herb-tools/formatter
[!WARNING] Experimental Preview This formatter is currently in experimental preview. While it works for many common cases, it may potentially corrupt files in edge cases. Only use on files that can be restored via git or other version control systems.
Auto-formatter for HTML+ERB templates with intelligent indentation, line wrapping, and ERB-aware pretty-printing.
Perfect for format-on-save in editors and formatting verification in CI/CD pipelines. Transforms templates into consistently formatted, readable code while preserving all functionality.
:::code-group
npm install -g @herb-tools/formatter
pnpm add -g @herb-tools/formatter
yarn global add @herb-tools/formatter
bun add -g @herb-tools/formatter
:::
Then run directly:
herb-format template.html.erb
For occasional use without installing:
npx @herb-tools/formatter template.html.erb
:::code-group
npm add -D @herb-tools/formatter
pnpm add -D @herb-tools/formatter
yarn add -D @herb-tools/formatter
bun add -D @herb-tools/formatter
:::
After installing as a dev dependency, add format scripts to your package.json
:
{
"scripts": {
"herb:format": "herb-format",
"herb:format:check": "herb-format --check"
}
}
Then run the scripts:
:::code-group
npm run herb:format
npm run herb:format:check
pnpm herb:format
pnpm herb:format:check
yarn herb:format
yarn herb:format:check
bun run herb:format
bun run herb:format:check
:::
Basic usage:
herb-format
herb-format template.html.erb
herb-format templates/
Check Mode:
# Check if files are formatted without modifying them
herb-format --check template.html.erb
# Check all files in current directory
herb-format --check
Input Sources:
# Format specific file
herb-format templates/index.html.erb
# Format all .html.erb files in directory
herb-format templates/
# Format all .html.erb files in current directory (default)
herb-format
# Format from stdin
cat template.html.erb | herb-format
Help and Version:
# Show help
herb-format --help
# Show version information
herb-format --version
FAQs
Auto-formatter for HTML+ERB templates with intelligent indentation, line wrapping, and ERB-aware pretty-printing.
The npm package @herb-tools/formatter receives a total of 3,876 weekly downloads. As such, @herb-tools/formatter popularity was classified as popular.
We found that @herb-tools/formatter 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.