@sensio/op-sn-file
TypeScript icon, indicating that this package has built-in type declarations

0.4.8-alpha.4 • Public • Published

@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

Install

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

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

Usage

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

/@sensio/op-sn-file/

    Package Sidebar

    Install

    npm i @sensio/op-sn-file

    Weekly Downloads

    14

    Version

    0.4.8-alpha.4

    License

    Apache-2.0

    Unpacked Size

    25 kB

    Total Files

    27

    Last publish

    Collaborators

    • woss