@imssyang/formatui
v1.0.4
Published
A text-formatted view used on browser.
Downloads
1
Readme
Formatui is a text-formatted view used on browser. It aims to convert various text formats in place, such as json to python-dict.
Feature
- Adaptive browser window size.
- Multiple window layout styles, which can be switched freely.
- Support search and replace windows.
- Support swapping editor content.
Dependencies
- W2UI: A modern JavaScript UI library for building rich web applications.
- codemirror6: A code editor component for the web.
- bootstrap-icons: Free, high quality, open source icon library with over 2,000 icons.
- json5: An extension to the popular JSON file format that aims to be easier to write and maintain by hand.
- clipboard: A modern approach to copy text to clipboard.
Commands
For Node.js:
# Compile to ES6 module
npm run build[:dev]
# Run simple server (hot-reload), and open http://localhost:5015 in browser
npm run serve
# Run by docker, and open http://localhost:5015 in browser
docker run -it -p 5015:5015 --rm ghcr.io/imssyang/formatui:latest
Why
Various texts in the development and debugging environment exist either in machine reading form or in human reading form, and often need to be converted into forms. Online conversion can often only meet some scenarios, and has a single function and is not user-friendly. Therefore, it is necessary to leverage the power of the open source community to create a universal text converter that is easy to use and can be continuously optimized.
Todo
- Vertical multi-window layout
- History list
- Indent control
- Clipboard