# @iamkenos/fragile

> A mocking framework powered by Express, designed to serve mock HTTP/s responses.

Latest version **0.2.1** (published 2021-06-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @iamkenos/fragile
pnpm add @iamkenos/fragile
yarn add @iamkenos/fragile
bun add @iamkenos/fragile
```

Provides the command `fragile`.

## 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.2.1 |
| Published | 2021-06-21 |
| First published | 2021-04-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 30 |
| Unpacked size | 754.2 KB |
| Known vulnerabilities | 0 (+22 in 7 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | iamkenos |
| Maintainers | iamkenos |

## Links

- npm: https://www.npmjs.com/package/@iamkenos/fragile
- Repository: https://github.com/iamkenos/fragile
- Homepage: https://github.com/iamkenos/fragile#readme
- Issues: https://github.com/iamkenos/fragile/issues
- npm.io page: https://npm.io/package/@iamkenos/fragile

## Dependencies (30)

- [ejs](https://npm.io/package/ejs.md) 3.1.6
- [cors](https://npm.io/package/cors.md) 2.8.5
- [chalk](https://npm.io/package/chalk.md) 4.1.1
- [slash](https://npm.io/package/slash.md) 3.0.0
- [yargs](https://npm.io/package/yargs.md) 17.0.1
- [multer](https://npm.io/package/multer.md) 1.4.2
- [express](https://npm.io/package/express.md) 4.17.1
- [shelljs](https://npm.io/package/shelljs.md) 0.8.4
- [ts-node](https://npm.io/package/ts-node.md) 10.0.0
- [fs-extra](https://npm.io/package/fs-extra.md) 10.0.0
- [inquirer](https://npm.io/package/inquirer.md) 8.1.1
- [loglevel](https://npm.io/package/loglevel.md) 1.7.1
- [prettier](https://npm.io/package/prettier.md) 2.3.1
- [typescript](https://npm.io/package/typescript.md) 4.3.4
- [@babel/core](https://npm.io/package/@babel/core.md) 7.14.6
- [body-parser](https://npm.io/package/body-parser.md) 1.19.0
- [url-pattern](https://npm.io/package/url-pattern.md) 1.0.3
- [lodash.merge](https://npm.io/package/lodash.merge.md) 4.6.2
- [@types/multer](https://npm.io/package/@types/multer.md) 1.4.6
- [cookie-parser](https://npm.io/package/cookie-parser.md) 1.4.5
- [@types/express](https://npm.io/package/@types/express.md) 4.17.12
- [tsconfig-paths](https://npm.io/package/tsconfig-paths.md) 3.9.0
- [@babel/register](https://npm.io/package/@babel/register.md) 7.14.5
- [body-parser-xml](https://npm.io/package/body-parser-xml.md) 2.0.3
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) 7.14.5
- [express-rate-limit](https://npm.io/package/express-rate-limit.md) 5.2.6
- [@types/cookie-parser](https://npm.io/package/@types/cookie-parser.md) 1.4.2
- [http-proxy-middleware](https://npm.io/package/http-proxy-middleware.md) 2.0.0
- [loglevel-plugin-prefix](https://npm.io/package/loglevel-plugin-prefix.md) 0.8.4
- [@types/express-rate-limit](https://npm.io/package/@types/express-rate-limit.md) 5.1.2

## Recent versions

- 0.2.1 (latest) — 2021-06-21
- 0.2.0 — 2021-05-22
- 0.1.5 — 2021-05-09
- 0.1.4 — 2021-05-01
- 0.1.3 — 2021-04-18
- 0.1.2 — 2021-04-18
- 0.1.1 — 2021-04-17

## README

<h1 align="center">FRAGILE</h1>

<p align="center">
  <a href="./docs/DETAILED_GUIDE.md">Detailed Guide</a> |
  <a href="./docs/RELEASES.md">Releases</a>
</p>

---

## About

A mocking framework powered by [Express](https://expressjs.com/), designed to serve mock HTTP/s responses.

Key features:

- write mocks with [TypeScript](https://www.typescriptlang.org/docs/handbook/modules.html)
- http / https support using a unified port
- proxy requests to another target
- record responses returned by a proxy and output as a mock response module
- serve static files
- rate limit
- xml content type request parsing
- response delays

Know more by going through the [detailed guide](./docs/DETAILED_GUIDE.md).

## Requirements

- NodeJS _`14.16.1`_ or LTS

## Get Started

1. Get it

   `npm install @iamkenos/fragile`

2. Try it

   `npx fragile samples`

3. Run it

   `npx fragile ./samples/fragile.conf.ts`

## License

MIT

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