
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
prettier-plugin-marko
Advanced tools
Note: For prettier@2 or below use
prettier-plugin-marko@2
.
A Prettier plugin for parsing and printing Marko files.
npm install prettier prettier-plugin-marko -D
yarn add prettier prettier-plugin-marko -D
npx --no-install prettier --write "**/*.marko"
npm exec -- prettier --write "**/*.marko"
yarn prettier --write "**/*.marko"
Editors such as Atom and VSCode provide plugins for calling Prettier directly from your editor.
If you'd like to use these plugins without installing prettier-plugin-marko
in the project, you can also install prettier-plugin-marko
globally with either npm, yarn or your package manager choice.
On top of Prettier's options, there are a few additional options picked up by this plugin.
markoSyntax: "auto" | "html" | "concise"
Marko supports both an html like and concise syntaxes. By default this plugin will try to detect the syntax you are already using and output a formatted document in that syntax.
You can overide the default ("auto"
) to enforce that all templates are formatted to the syntax of your choosing.
markoAttrParen: boolean
For the most part Marko is very flexible when it comes to the expressions uses within attributes. By default this plugin will not wrap attribute values in parenthesis unless absolutely necessary. By setting this value to true it will instead output parenthesis whenever the attribute value contains any unenclosed whitespace.
This project adheres to the eBay Code of Conduct. By participating in this project you agree to abide by its terms.
FAQs
A prettier plugin for parsing and printing Marko files
The npm package prettier-plugin-marko receives a total of 336 weekly downloads. As such, prettier-plugin-marko popularity was classified as not popular.
We found that prettier-plugin-marko demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.