Socket
Book a DemoInstallSign in
Socket

@sensio/op-sn-file

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sensio/op-sn-file

Blockchain Version **bafy2bzaced67meyosnnt6dmvsp4sjro5mo5ufu3ntoqamouttsa4tlqo6ta2m**

latest
Source
npmnpm
Version
0.4.8-alpha.4
Version published
Maintainers
1
Created
Source

@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.

  • npm: https://www.npmjs.com/package/@sensio/op-sn-file
  • repo: repo folder
  • support: Discord server #public-support channel

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

Keywords

sensio

FAQs

Package last updated on 08 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts