
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@hubspot/prettier-plugin-hubl
Advanced tools
A Prettier plugin that formats HubL templates for use with the HubSpot CMS
A Prettier plugin that formats HubL templates for use with the HubSpot CMS
This plugin is currently in active development. Bug reports and questions are welcomed.
In keeping with Prettier’s philosophy, this plugin is relatively opinionated and sometimes Prettier will prefer one syntax over another. For example:
{{ foo is string_containing “bar” }}
will become {{ foo is string_containing(“bar”) }}
a && b
will become a and b
c || d
will become c or d
If you have a particular code-style opinion that you feel strongly about, feel free to open an issue for review.
You can install this plugin directly from NPM by running:
npm i @hubspot/prettier-plugin-hubl
If you haven't already installed prettier you'll want to do that as well:
npm i prettier
If you don't already have a prettier config file, create one:
# .prettierrc.json
---
{
"overrides": [
{
"files": "*.html",
"options": {
"parser": "hubl"
}
}
]
}
Run prettier
npx prettier --write '**/*.html'
Check under “Known Issues” to see if your error has been reported already. If not, feel free to open up a new issue.
You can stay up to date with HubSpot CMS Boilerplate updates and discussions in the #hs-cms-boilerplate channel in the HubSpot Developer Slack.
FAQs
A Prettier plugin that formats HubL templates for use with the HubSpot CMS
The npm package @hubspot/prettier-plugin-hubl receives a total of 445 weekly downloads. As such, @hubspot/prettier-plugin-hubl popularity was classified as not popular.
We found that @hubspot/prettier-plugin-hubl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 17 open source maintainers 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 uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.