# @arcblock/ipfs-only-hash

> Just enough code to calculate the IPFS hash for some data

Latest version **0.0.2** (published 2023-12-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @arcblock/ipfs-only-hash
pnpm add @arcblock/ipfs-only-hash
yarn add @arcblock/ipfs-only-hash
bun add @arcblock/ipfs-only-hash
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2023-12-27 |
| First published | 2023-12-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | arcblock |
| Maintainers | wangshijun, polunzh, mave99a, gxw |
| Keywords | ipfs, hash, cid |

## Links

- npm: https://www.npmjs.com/package/@arcblock/ipfs-only-hash
- Repository: https://github.com/ArcBlock/ipfs-only-hash
- Issues: https://github.com/ArcBlock/ipfs-only-hash/issues
- npm.io page: https://npm.io/package/@arcblock/ipfs-only-hash

## Dependencies (2)

- [multiformats](https://npm.io/package/multiformats.md) 9
- [ipfs-unixfs-importer](https://npm.io/package/ipfs-unixfs-importer.md) 9

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2023-12-27
- 0.0.2-beta-2023-12-27-11-52-441 (beta) — 2023-12-27
- 0.0.1 — 2023-12-26
- 0.0.1-beta-2023-12-27-00-41-333 — 2023-12-26

## README

# @arcblock/ipfs-only-hash

Just enough code to calculate the IPFS hash for some data


## Install

```sh
npm install @arcblock/ipfs-only-hash
```

## Usage

```js
const { onlyHash } = require('@arcblock/ipfs-only-hash')
const data = 'hello world!';
const hash = await onlyHash(data);
console.log(hash); // QmTp2hEo8eXRp6wg7jXv1BLCMh5a4F3B7buAUZNZUu772j
```

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