New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@cospaia/prettier-plugin-clojure

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cospaia/prettier-plugin-clojure

Prettier Plugin for Clojure. Indentation only, and non-configurable

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

@cospaia/prettier-plugin-clojure

An (almost) indentation-only, non-configurable, Prettier Plugin for Clojure and ClojureScript (and any sufficiently similar implementations).

The plugin really is basic. It will format the code using cljfmt defaults, without letting you configure anything. This means that mostly indentation will be applied, but there is also some folding of the bracket trail and trimming of whitespace inside the brackets, going on.

Is that really useful? I need it for a project, so, yes, at least to someone. 😄

Using it

In the project you want to use it, you first:

  • npm i prettier @cospaia/prettier-plugin-clojure

Then you can do things like:

$ npx prettier <clojure-file | markdown-file-w-fenced-clojure-block>

e.g:

$ npx prettier ./test-data/some_code.clj
$ npx prettier ./test-data/some-fenced-code.md

Testing it

In this project:

  • npm i
  • npm run builddist
  • npx prettier --plugin . ./test-data/some_code.clj
  • npx prettier --plugin . ./test-data/some-fenced-code.md

See also the test project.

Author

Peter Strömberg, aka PEZ

Built with

LICENSE

MIT

Keywords

prettier

FAQs

Package last updated on 08 Nov 2022

Did you know?

Socket

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.

Install

Related posts