# @sensio/op-sn-file

> Blockchain Version **bafy2bzaced67meyosnnt6dmvsp4sjro5mo5ufu3ntoqamouttsa4tlqo6ta2m**

Latest version **0.4.8-alpha.4** (published 2021-01-08) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @sensio/op-sn-file
pnpm add @sensio/op-sn-file
yarn add @sensio/op-sn-file
bun add @sensio/op-sn-file
```

## 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.4.8-alpha.4 |
| Published | 2021-01-08 |
| First published | 2020-09-26 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 24.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | daniel@woss.io |
| Maintainers | woss |
| Keywords | sensio, operation, file, readfile |

## Links

- npm: https://www.npmjs.com/package/@sensio/op-sn-file
- Repository: https://gitlab.com/sensio_group/network-js-sdk
- Homepage: https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snFile#readme
- Issues: https://gitlab.com/sensio_group/network-js-sdk/issues
- npm.io page: https://npm.io/package/@sensio/op-sn-file

## Dependencies (3)

- [@sensio/core](https://npm.io/package/@sensio/core.md) ^0.4.8-alpha.4
- [@sensio/types](https://npm.io/package/@sensio/types.md) 0.4.8-alpha.3
- [@polkadot/util](https://npm.io/package/@polkadot/util.md) 5.0.1

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.4.8-alpha.4 (latest) — 2021-01-08
- 0.4.8-alpha.3 — 2020-12-18
- 0.4.8-alpha.2 — 2020-12-08
- 0.4.8-alpha.0 — 2020-12-01
- 0.4.7 — 2020-12-01
- 0.4.6 — 2020-12-01
- 0.4.6-alpha.0 — 2020-11-10
- 0.4.5 — 2020-11-09
- 0.4.5-alpha.0 — 2020-11-09
- 0.4.4-alpha.0 — 2020-09-26
- 0.4.3 — 2020-09-26
- 0.4.2 — 2020-09-26

## README

# @sensio/op-sn-file

Blockchain Version **bafy2bzaced67meyosnnt6dmvsp4sjro5mo5ufu3ntoqamouttsa4tlqo6ta2m**

## Description

Reads the file from given path (data) and returns the buffer. RAW file buffer for other ops to use.

## Links and Repo

- npm: https://www.npmjs.com/package/@sensio/op-sn-file
- repo: [repo folder](https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snFile)
- support: [Discord server #public-support channel](https://discord.gg/RQ9g29y)

## Install

```sh
# install latest version
yarn add @sensio/op-sn-file

# or specific version
yarn add @sensio/op-sn-file@0.1.0
```

## Usage

```ts
import snFile from '@sensio/op-sn-file'

const dataAsUintArray = new U8intArray(7)
const dataAsBuffer = Buffer.from(7)
await snFile([{ data: dataAsUintArray, decode: () => dataAsBuffer }])
```

## Contributing

PRs accepted.

## License

Longer version is in LICENSE file

Apache-2.0 © [Sensio Group](https://sensio.group)

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