# chochoi

> Starter kit for programming Node commands with Clojure

Latest version **0.0.6** (published 2017-12-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install chochoi
pnpm add chochoi
yarn add chochoi
bun add chochoi
```

Provides the command `chochoi`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2017-12-25 |
| First published | 2017-12-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | kazuhiro hara |
| Maintainers | kara_d |
| Keywords | nodejs, clojurescript, clojure, cli, generator, tool |

## Links

- npm: https://www.npmjs.com/package/chochoi
- npm.io page: https://npm.io/package/chochoi

## Dependencies (2)

- [ejs](https://npm.io/package/ejs.md) ^2.5.7
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.0.6 (latest) — 2017-12-25
- 0.0.5 — 2017-12-23
- 0.0.4 — 2017-12-23
- 0.0.3 — 2017-12-23
- 0.0.2 — 2017-12-23
- 0.0.1 — 2017-12-23

## README

# chochoi

Starter kit for programming Node commands with Clojure.

"chochoi" means 'easy, fast' in Japanese.

## Requirements

- cljs.jar
- nodejs

## Usage

### step 1

download `cljs.jar` from https://github.com/clojure/clojurescript/releases/latest
set CLJS_PATH.

ex.

```
export CLJS_PATH="/Users/XXXXX/.cljs/cljs.jar"
```

### step 2

install chochoi

```
$ npm install -g chochoi
```

### step 2

generate a your node command project

ex. make `hello` command

```
$ chochoi new hello

⚡ init chochoi project...

-------------------------------
- create : ./hello
- create : ./hello/src/hello
- create : hello/src/hello/core.cljs
- create : hello/src/hello/command.cljs
- create : hello/.gitignore
- create : hello/build.clj
- create : hello/build.js
- create : hello/config.js
- create : hello/package.json
- create : hello/README.md
-------------------------------

👍 completed.
```

### step 3

build command, and run!

```
$ cd hello
$ chochoi build

⚡ build chochoi project...

completed linked command.

completed clojurescript build.
up to date in 0.055s
/Users/XXXXX/.nvm/versions/node/v8.7.0/bin/hello -> /Users/XXXXX/.nvm/versions/node/v8.7.0/lib/node_modules/hello/out/main.js
/Users/XXXXX/.nvm/versions/node/v8.7.0/lib/node_modules/hello -> /Users/XXXXX/study/chochoi/hello

👍 completed.
```

### step 4

```
$ hello kaz
Hello world! kaz
```

You can edit `src/hello/command.cljs `

```
(ns hello.command
  (:require [cljs.nodejs :as nodejs]))

(defn command [args]
  (println "Hello world!" (str (first args))))
```


## Change log

### 0.0.6 (2017-12-25)

- added 'merry' command. enjoy it!

### 0.0.4 (2017-12-24)

- start project.

## License

Copyright ©  Kazuhiro Hara (Greative LLC http://greative.jp/)
{:mail kazuhiroh@gmail.com
 :twitter https://twitter.com/kara_d}

Distributed under the MIT License http://opensource.org/licenses/MIT .

## Thanks

- [@kara_d](https://github.com/karad/)

---
_Source: https://npm.io/package/chochoi · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
