Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/llafuente/curt
Minify Javascript just enough to be readable and you can write better oneliners.
https://github.com/llafuente/curt
Last synced: 1 day ago
JSON representation
Minify Javascript just enough to be readable and you can write better oneliners.
- Host: GitHub
- URL: https://github.com/llafuente/curt
- Owner: llafuente
- Created: 2016-09-20T15:51:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-30T09:42:14.000Z (about 8 years ago)
- Last Synced: 2024-11-07T06:43:10.925Z (about 2 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# curt
adjective
> rudely brief.
Minify Javascript just enough to be readable and you can write better oneliners.
## Globals
|----------|---------------|
| `curt` | 'myself' :) |
| `stdout` | console.log |
| `stderr` | console.error |
| `_` | lodash |
| `_m` | moment |## Prototypes
|----------|-------------------|
| [].each | [].forEach |## Exports
> require("curt").stdin(callback, format)
read everything from stdin and call callback with it.
format: json, null
> require("curt").stdin_get(json_path)
read everything from stdin (json) and print given path
> require("curt").escape(arg)
Escape argument for bash usage