Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christophwitzko/semicolon-indent
indentation with semicolons
https://github.com/christophwitzko/semicolon-indent
Last synced: 23 days ago
JSON representation
indentation with semicolons
- Host: GitHub
- URL: https://github.com/christophwitzko/semicolon-indent
- Owner: christophwitzko
- Created: 2015-02-02T21:17:12.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-05T19:03:25.000Z (almost 10 years ago)
- Last Synced: 2024-10-13T18:25:45.206Z (25 days ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/semicolon-indent
- Size: 172 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# semicolon-indent
This is what semicolon indented code looks like:
```js
module.exports = function (data, force) {
;;var opts = {
;;;;preset: 'default',
;;;;indent: {
;;;;;;value: ';;',
;;;;;;ObjectExpression: force ? 1 : 0
;;;;}
;;}
;;return esformatter.format(data + '\n', opts)
}
```## Install semicolon-indent
$ npm install -g semicolon-indent
## CLI usage
$ semicolon-indent index.js > index2.js
**use stdin**
$ cat index.js | semicolon-indent > index2.js
## Licence
The [MIT License (MIT)](http://opensource.org/licenses/MIT)
Copyright © 2015 [Christoph Witzko](https://twitter.com/christophwitzko)