Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jochcool/organised-javascript
Makes your code much more organised by grouping each type of token in your code into columns.
https://github.com/jochcool/organised-javascript
Last synced: 10 days ago
JSON representation
Makes your code much more organised by grouping each type of token in your code into columns.
- Host: GitHub
- URL: https://github.com/jochcool/organised-javascript
- Owner: JochCool
- License: mit
- Created: 2020-09-10T12:31:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-21T22:22:39.000Z (over 4 years ago)
- Last Synced: 2024-10-27T20:43:54.485Z (2 months ago)
- Language: JavaScript
- Size: 27.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
JavaScript code is always such a mess! This program takes your program and organises it into neat little columns. I've even done this with this very program, so take a peek in [index.js](./index.js).
In order to use this program, you will need to install [NodeJS](https://nodejs.org) first. Run this program using Node and pass in the input file as the first parameter, and the output file as the second. Here's an example:
`node index.js "my code.js" output.js`This program was inspired by [this comment](https://www.reddit.com/r/ProgrammerHumor/comments/ioufuf/when_someone_asks_you_to_write_clear_commented/g4g2dxt) on Reddit. Thanks, u/Pfuenzle and u/Per-mille! Also thanks to u/MajesticThrust for some testing.
I know that the columns that my transpiler generates are not exactly the same as in the original post, but differentiating variable names from class names is an absolute nightmare.
The code is available under an MIT license. Have fun!