Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/e-jigsaw/lson-cli
lson cli tool
https://github.com/e-jigsaw/lson-cli
Last synced: 26 days ago
JSON representation
lson cli tool
- Host: GitHub
- URL: https://github.com/e-jigsaw/lson-cli
- Owner: e-jigsaw
- Created: 2015-05-14T21:25:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-14T08:57:52.000Z (about 9 years ago)
- Last Synced: 2024-05-02T06:18:33.741Z (6 months ago)
- Language: LiveScript
- Size: 164 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
lson-cli
========[![npm version](https://badge.fury.io/js/lson-cli.svg)](http://badge.fury.io/js/lson-cli) [![dependency Status](https://david-dm.org/e-jigsaw/lson-cli/status.svg)](https://david-dm.org/e-jigsaw/lson-cli) [![devDependency Status](https://david-dm.org/e-jigsaw/lson-cli/dev-status.svg)](https://david-dm.org/e-jigsaw/lson-cli#info=devDependencies)
[LSON](https://github.com/gkovacs/lson) compiler for CLI.
# Usage
Simple
```sh
✈ lson -p test.lson
{ hoge: 'hoge' }
```Output to file
```sh
✈ lson -o hage.json test.lson
✈ cat hage.json
{ hoge: 'hoge' }
```Output to directory
```sh
✈ mkdir out
✈ lson -o out test.lson
✈ cat out/test.json
{ hoge: 'hoge' }
```[Glob](https://github.com/isaacs/node-glob) your file
```sh
✈ lson -o out *.lson
✈ cat out/test.json
{ hoge: 'hoge' }
```Minimize output
```sh
✈ lson -pm test.lson
{"hoge":"hoge"}
```# Installation
```
✈ npm install lson-cli
```# build
```sh
✈ npm run build
```# Author
* jigsaw (http://jgs.me, [@e-jigsaw](https://github.com/e-jigsaw))
# License
MIT
The MIT License (MIT)
Copyright (c) 2015 Takaya Kobayashi
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.