# hocho

> Angular 1.X REST API client generator from Swagger JSON with camel case settings

Latest version **0.0.9** (published 2018-02-26) · Apache-2.0 license · 0 weekly downloads

## Install

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

Provides the command `hocho`.

## 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.9 |
| Published | 2018-02-26 |
| First published | 2018-02-24 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 95.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Timothy Ian Munnerley |
| Maintainers | ian5015 |
| Keywords | swagger, rest, angularjs, angular, scaffolding, webapi, api, generator, camel |

## Links

- npm: https://www.npmjs.com/package/hocho
- Repository: https://github.com/Ian5015/hocho
- Issues: https://github.com/Ian5015/hocho/issues
- npm.io page: https://npm.io/package/hocho

## Dependencies (9)

- [gulp](https://npm.io/package/gulp.md) ^3.9.1
- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [tslint](https://npm.io/package/tslint.md) ^5.7.0
- [request](https://npm.io/package/request.md) ^2.81.0
- [mustache](https://npm.io/package/mustache.md) ^2.3.0
- [optimist](https://npm.io/package/optimist.md) ^0.6.1
- [typescript](https://npm.io/package/typescript.md) ^2.4.0
- [js-beautify](https://npm.io/package/js-beautify.md) ^1.6.14

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 0.0.9 (latest) — 2018-02-26
- 0.0.8 — 2018-02-25
- 0.0.7 — 2018-02-25
- 0.0.6 — 2018-02-25
- 0.0.5 — 2018-02-25
- 0.0.4 — 2018-02-25
- 0.0.3 — 2018-02-25
- 0.0.2 — 2018-02-24
- 0.0.1 — 2018-02-24

## README

# Hocho
AngularJS 1.X API client generator from Swagger JSON specification

# Description
This package generates a AngularJS 1.X TypeScript classes from a Swagger v2.0 specification file. The code is generated using Mustache templates.

# How to get it working

## Installation

`npm install hocho`

or  

`git clone https://github.com/Ian5015/hocho`  
`cd hocho`  
`npm install`  
`npm run build`  

## Usage

From command line, run:
```
hocho -s [yopur/path/to/swagger.json]
```

or
```
hocho -u [url/of/your/swagger.json]
```

## Example usage:

This command will generate API client described in swagger.json file to ./out folder
```
hocho -s ./tests/apis/swagger.json -o ./out
```

or from repository directory run:
```
node ./src/hocho -s ./tests/apis/swagger.json -o ./out
```

## Note:
This project was inspired by [swagger-js-codegen](https://github.com/wcandillon/swagger-js-codegen) project.

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