An open API service indexing awesome lists of open source software.

https://github.com/tool3/clibe

⎇ use any npm library as a cli
https://github.com/tool3/clibe

cli library npm

Last synced: about 1 month ago
JSON representation

⎇ use any npm library as a cli

Awesome Lists containing this project

README

          

# clibe ⎇
use any npm library as a cli

# install
```bash
npm install clibe -g
```
or see usage below for running with `npx`

# usage
```bash
npx clibe [command] [args..]
```
for example
```bash
clibe 'lib-name' 'some-command' 'args' 'for' 'command'
```

# example
## gradient-string
```bash
npx clibe 'gradient-string' 'teen' 'HELLO WORLD'
```
output:
![](./hello.png)

## voca
```bash
npx clibe 'voca' 'camelCase' 'hello world'
```
output:
```
helloWorld
```
## moment
```bash
npx clibe 'moment' 'format' 'MMMM Do YYYY' 'h:mm:ss a' -i
```
output:
```
January 11th 2021
```

## lodash
```bash
npx clibe lodash chunk '["a", "b", "c", "d"]' 2
```
output:
```
[ [ 'a', 'b' ], [ 'c', 'd' ] ]
```
...any other lib you can think of :)