open-index/open-npm huggingface dataset:
npm package: @glagan/binary-reader
Description: Tool for reading binary data sequentially in JavaScript / TypeScript.
Author: picode7
Latest version: 1.1.2

# Binary Reader for JavaScript/TypeScript

[![npm](https://img.shields.io/npm/v/@glagan/binary-reader)](https://www.npmjs.com/package/@glagan/binary-reader)
![npm bundle size](https://img.shields.io/bundlephobia/minzip/@glagan/binary-reader)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/glagan/binary-reader/.github/workflows/main.yml?branch=main)](https://github.com/glagan/binary-reader/actions)

Tool for reading binary data sequentially in JavaScript / TypeScript

Requires [DataView.getBigInt64 support](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getBigInt64#browser_compatibility) for Int64/Uint64

## Installation

```bash
npm install @glagan/binary-reader
```

## Usage

```ts
import { BinaryReader } from '@glagan/binary-reader'

const data = new BinaryReader(uint8Array)

const version = data.readUint32()
const nameLen = data.readUint8()
const name = data.readArrayAsString(nameLen)
```

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License

[MIT](/LICENSE)
npm package: @glagh/commons-sdk
Description: `@aragon/osx-commons-sdk` provides common utilities for the development of plugins and the OSx protocol. This includes:
Author: Aragon X
Latest version: 0.0.1

# Aragon OSx Commons SDK

`@aragon/osx-commons-sdk` provides common utilities for the development of plugins and the OSx protocol. This includes:

- common helper functionality for
  - web3 interaction
  - subgraph interaction
  - file storage on IPFS
  - retrieving addresses of deployed Aragon OSx framework contracts
  - contract deployment
  - contract testing
- base classes for creating custom JS clients on top of the built-in one.

- Extendable JS client with built-in Web3, Subgraph and IPFS
- Extendable context for holding inheritable configuration

## Installation

Use [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/) to install
@aragon/osx-commons-sdk.

```bash
npm install @aragon/osx-commons-sdk
yarn add @aragon/osx-commons-sdk
```

## Usage

The SDK usage is demonstrated in the
[SDK examples section of the Developer Portal](https://devs.aragon.org/docs/sdk/examples/).

## React Native

In order for the SDK to be used in restricted environments like react native
install the following polyfilesand into your project:

- [@ethersproject/shims](https://www.npmjs.com/package/@ethersproject/shims)
- [react-native-url-polyfill](https://www.npmjs.com/package/react-native-url-polyfill)

Then import them like the following **before** you import the Aragon SDK
package:

```javascript
import {Client} from '@aragon/osx-commons-sdk';
import '@ethersproject/shims';
import 'react-native-url-polyfill/auto';
```

## Low level networking

See `ClientCore` ([source](./src/internal/core.ts)):

- Abstract class implementing primitives for:
  - Web3, contracts, signing
  - IPFS
  - GraphQL
- Inherited by classes like `Client` and all plugin classes like
  `TokenVotingClient`.

## Common interfaces, types, enum's

When updating the `ClientCore` class:

- **Update first** all affected enum's, types and interfaces in
  `src/internal/interfaces.ts`

## Testing

To execute library tests just run:

```bash
yarn test
```

## Security

If you believe you've found a security issue, we encourage you to notify us. We welcome working with you to resolve the issue promptly.

Security Contact Email: sirt@aragon.org

Please do not use the issue tracker for security issues.