An open API service indexing awesome lists of open source software.

https://github.com/ntnyq/prettier-now

:hammer: Yet another @Prettier browser extension
https://github.com/ntnyq/prettier-now

browser-extension format prettier web-ext wxt

Last synced: 6 months ago
JSON representation

:hammer: Yet another @Prettier browser extension

Awesome Lists containing this project

README

          

# prettier-now

> :hammer: Yet another [prettier](https://prettier.io) browser extension.

[![CI](https://github.com/ntnyq/prettier-now/workflows/CI/badge.svg)](https://github.com/ntnyq/prettier-now/actions)
[![LICENSE](https://img.shields.io/github/license/ntnyq/prettier-now.svg)](https://github.com/ntnyq/prettier-now/blob/main/LICENSE)

## Install

[link-chrome]: https://chromewebstore.google.com/detail/prettier-now/jdclalpfpcpojbhnkjebiepeeegmlhdf 'Version published on Chrome Web Store'
[link-firefox]: https://addons.mozilla.org/zh-CN/firefox/addon/prettier-now 'Version published to Mozilla Addons'

[Chrome][link-chrome] [version][link-chrome] and other Chromium browsers

[Chrome][link-firefox] [version][link-firefox]

## Features

- Format source code with customable options
- Drag and drop file to format
- Select file to format
- Copy and Paste file to format
- Open format page in contextMenu

## Supported languages

### Built-in language plugins

- JavaScript
- TypeScript
- HTML
- Vue
- Angular
- CSS
- Less
- SCSS
- GraphQL
- JSON
- YAML
- Markdown

### Official language plugins

- XML (via [@prettier/plugin-xml](https://github.com/prettier/plugin-xml))
- PHP (via [@prettier/plugin-php](https://github.com/prettier/plugin-php))
- Pug (via [@prettier/plugin-pug](https://github.com/prettier/plugin-pug)) 😭

### Community language plugins

- Java (via [prettier-plugin-java](https://github.com/jhipster/prettier-java))
- Svelte (via [prettier-plugin-svelte](https://github.com/sveltejs/prettier-plugin-svelte))
- TOML (via [prettier-plugin-toml ](https://github.com/un-ts/prettier/tree/master/packages/toml))

## Screenshots

![light](./screenshots/light.png)

![dark](./screenshots/dark.png)

## Prior Art

- UI design from [AST Explorer](https://ast.sxzz.moe) created by [sxzz](https://github.com/sxzz)
- Built on top of [WXT](https://wxt.dev), the next-gen web extension framework

## License

[MIT](./LICENSE) License © 2024 to PRESENT [ntnyq](https://github.com/ntnyq)