# @domain.js/hash

> domain.js hash 通用模块

Latest version **0.2.0** (published 2021-07-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @domain.js/hash
pnpm add @domain.js/hash
yarn add @domain.js/hash
bun add @domain.js/hash
```

## 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.0 |
| Published | 2021-07-17 |
| First published | 2021-01-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Redstone Zhao |
| Maintainers | stonephp |
| Keywords | hash, domain.js |

## Links

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

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2021-07-17
- 0.1.0 — 2021-01-22

## README

# @domain.js/hash

[![Build status](https://travis-ci.com/domain-js/hash.svg?branch=master)](https://travis-ci.org/domain-js/hash)
[![codecov](https://codecov.io/gh/domain-js/hash/branch/master/graph/badge.svg)](https://codecov.io/gh/domain-js/hash)

# Installation
<pre>npm i @domain.js/hash --save</pre>

# cnf
专属配置名称 `hash`
| 名称 | 类型 | 必填 | 默认值 | 描述 | 样例 |
| ---- | ---- | ---- | ------ | ---- | ---- |
| key  | string | `是` | `无` | hash 在redis里存储的 key 名称 | hashs |

# deps
| 模块名 | 别名 | 用到的方法 | 描述 |
| ------ | ---- | ---------- | ---- |
| redis  | `无` | hget, hset, hdel | 本质上是包裹了一下 redis.hash 相关的操作 |


# Usage
| 功能 | 描述 | 样例 |
| ---- | ---- | ---- |
| get | 读取一个 key | await hash.get('name') |
| set | 设置一个 key | await hash.set('name', 'Redstone') |
| del | 删除一个 key | await hash.del('name') |
| incr | 原子操作某个 key 的值增加 | await hash.incr('name', 1) |

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