# hakoniwa

> miniature wonder toolbox for front-end development.

Latest version **0.1.4-rc.1** (published 2021-10-28) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

Provides the command `hakoniwa-cli`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.4-rc.1 |
| Published | 2021-10-28 |
| First published | 2021-10-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 14 |
| Unpacked size | 239.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | lonelyhentai |
| Maintainers | lonelyhentai |
| Keywords | toolbox, frontend |

## Links

- npm: https://www.npmjs.com/package/hakoniwa
- Repository: https://github.com/lonelyhentai/hakoniwa
- Homepage: https://github.com/lonelyhentai/hakoniwa#readme
- Issues: https://github.com/lonelyhentai/hakoniwa/issues
- npm.io page: https://npm.io/package/hakoniwa

## Dependencies (14)

- [joi](https://npm.io/package/joi.md) ^17.4.2
- [json5](https://npm.io/package/json5.md) ^2.2.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [cypress](https://npm.io/package/cypress.md) ^8.7.0
- [whistle](https://npm.io/package/whistle.md) ^2.8.0
- [cross-env](https://npm.io/package/cross-env.md) ^7.0.2
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.5
- [chai-colors](https://npm.io/package/chai-colors.md) ^1.0.1
- [cypress-promise](https://npm.io/package/cypress-promise.md) ^1.1.0
- [queue-typescript](https://npm.io/package/queue-typescript.md) ^1.0.1
- [@cypress/skip-test](https://npm.io/package/@cypress/skip-test.md) ^2.6.0
- [cypress-wait-until](https://npm.io/package/cypress-wait-until.md) ^1.7.1
- [cypress-skip-and-only-ui](https://npm.io/package/cypress-skip-and-only-ui.md) ^1.2.11
- [cypress-localstorage-commands](https://npm.io/package/cypress-localstorage-commands.md) ^1.5.0

## Recent versions

- 0.1.4-rc.1 (latest) — 2021-10-28
- 0.1.4-alpha.1 — 2021-10-28
- 0.1.3 — 2021-10-28
- 0.1.2 — 2021-10-28
- 0.1.1 — 2021-10-28

## README

# Hakoniwa

Miniature wonder toolbox for front-end development.

**Warning: Early stage of development now!**

## Initial Design

1. can works with or contains a proxy that proxy the requests and the responses of your program.
2. can define schema to test that:
    - contains mock data or other development resources.
    - defines api pattern, such as protocol, host, port, path, body, etc, or pattern of other resources.
    - contains one or more test scripts (e2e or unit)
3. controller that can input test schema, recognize the api pattern and cooperate with the proxy to feed mock data when your program needs, then run test scripts to test your program

## Install

```shell
npm install --save-dev hakoniwa cypress cross-env webpack typescript ts-loader @cypress/webpack-preprocessor
hakoniwa-cli init
```

## Run

```shell
hakoniwa-cli open
```

## RoadMap

### Version 0.2.0

- [ ] Advanced proxy functions
    - [x] Proxy values supports 
    - [ ] HTTPS supports
    - [x] Enable HTTP2
	- [x] Simple empty response and binary response support
- [ ] Tracking logging validation
    - [x] Basic tools
    - [ ] Advance validation
- [ ] Release helper
    - [ ] Release observer
    - [ ] Auto remove console and debugger when releasing
- [ ] Debugging mode
    - [ ] Bundle version checker
    - [ ] invoke, spy and stub of libraries such as react
        - [ ] React support
            - [x] Basic
        - [ ] Vue support
        - [ ] Angular support
- [ ] Advanced signing in and authentication
- [ ] Better command line tools

### Version 0.1.0

- [x] Basic signing in and authentication
- [x] Basic proxy controlling
    - [x] Start/Stop proxy service
    - [x] Edit literal proxy rule
    - [x] Get proxy data info
    - [x] Clear proxy rules
    - [x] Enable multi-rules
    - [x] Proxy switching
- [x] Basic rules controlling
- [x] Auto hide scrollbar - to simulate a mobile phone

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