# request-object-fingerprint

> generate a unique string from a [request](http://npm.im/request) object for use as a cache key

Latest version **1.0.0** (published 2015-04-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install request-object-fingerprint
pnpm add request-object-fingerprint
yarn add request-object-fingerprint
bun add request-object-fingerprint
```

## 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.0 |
| Published | 2015-04-28 |
| First published | 2015-04-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Zeke Sikelianos |
| Maintainers | zeke |
| Keywords | request, fingerprint, cache, redis |

## Links

- npm: https://www.npmjs.com/package/request-object-fingerprint
- Repository: https://github.com/zeke/request-object-fingerprint
- Homepage: https://github.com/zeke/request-object-fingerprint#readme
- Issues: https://github.com/zeke/request-object-fingerprint/issues
- npm.io page: https://npm.io/package/request-object-fingerprint

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-04-28

## README

# request-object-fingerprint

generate a unique string from a [request](http://npm.im/request) object for use as a cache key

## Installation

Download node at [nodejs.org](http://nodejs.org) and install it, if you haven't already.

```sh
npm install request-object-fingerprint --save
```

## Usage

```js
var fingerprint = require("request-object-fingerprint")

var request = {
  method: 'GET',
  url: '/flowers',
  qs: {color: 'red', fragrance: 'sweet'},
  headers: {bearer: 'beholder'}
}

fingerprint(request)
// => acl:e25f8d798636632ee5c91d27defb6749

// Set a custom prefix
fingerprint(request, {prefix: 'baz'})
// => baz:e25f8d798636632ee5c91d27defb6749
```

## Tests

```sh
npm install
npm test
```

## Dependencies

None

## Dev Dependencies

- [code](https://github.com/hapijs/code): assertion library
- [mocha](https://github.com/mochajs/mocha): simple, flexible, fun test framework
- [standard](https://github.com/feross/standard): JavaScript Standard Style


## License

MIT

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