# nt-test

> node test

Latest version **1.0.7** (published 2016-11-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install nt-test
pnpm add nt-test
yarn add nt-test
bun add nt-test
```

Provides the command `nt`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2016-11-23 |
| First published | 2016-11-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | donghanji |
| Maintainers | donghanji |
| Keywords | node, test |

## Links

- npm: https://www.npmjs.com/package/nt-test
- Repository: https://github.com/donghanji/nt-test
- Homepage: https://github.com/donghanji/nt-test#readme
- Issues: https://github.com/donghanji/nt-test/issues
- npm.io page: https://npm.io/package/nt-test

## Dependencies (3)

- [commander](https://npm.io/package/commander.md) ^2.9.0
- [iconv-lite](https://npm.io/package/iconv-lite.md) ^0.4.13
- [clustered-node](https://npm.io/package/clustered-node.md) 0.0.9

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 1.0.7 (latest) — 2016-11-23
- 1.0.6 — 2016-11-23
- 1.0.5 — 2016-11-14
- 1.0.4 — 2016-11-14
- 1.0.3 — 2016-11-13
- 1.0.2 — 2016-11-13
- 1.0.1 — 2016-11-13
- 1.0.0 — 2016-11-13

## README

# nt-test
node request/response test

### #First,
`
npm install nt-test -g
`


### #Second
`
  nt -h
`
<br/>
to see command help

### #Third,
`
nt init
`
<br/>
to init,create data and log file in current directory


### #Fourth,
`
nt data -s 10
`
<br/>
to create response data,size * 1k,<br/>
if < 1,like 0.2,will size * 100 * 10b,<br/>
will create a 10.data file in ./data directory.

### #Fifth,
`
nt res -s 10
`
<br/>
to create a response,you will to see help,like this
<br/>
`
nt res -h
`
<br/>
more,
<pre>
  nt res
  -p:port,default 3030
  -m:multi,multi process,default false,input cpus number
  -s:size:response data size,which is in ./data:
    0:”hello word"
    100:100k
    200:200k
    500:500k
    1000:1000k
    10000:10000k
</pre>

### #Sixth,
`
nt req -m 2 -s 1000
`
<br/>
to create a request ,by multi process,space is 1000ms.to see help,like this
<br/>
`
nt req -h
`
<br/>
more,
<pre>
nt req
  -h:host，server host, default 127.0.0.1
  -p:port，server port, default 3030
  -c:count，request count ,defualt 1
  -w:way，request way, default http,now only
  -m:method，request method, default get
  -s:space，request space time, default 100ms
</pre>

### #Seventh
`
nt clear
`
<br/>
to clear log files ,in ./log/*

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