open-index/open-npm huggingface dataset:
npm package: @ottomated/turbojson
Description: Serialize your javascript objects to binary quickly and easily.
Latest version: 0.3.1

# @ottomated/turbojson

Serialize your javascript objects to binary quickly and easily.

## THIS IS NOT READY FOR PRODUCTION USE

```js
import { serialize, deserialize } from '@ottomated/turbojson';

const object = {
	array: [1, null, 3],
	string: 'Hello World',
	date: new Date(),
	numbers: [1.5, -Infinity, Infinity, NaN],
	undefined: undefined,
	regex: /test/ig,
	set: new Set([true, false]),
	bigint: 1234567890n,
	symbol: Symbol('test'),
	error: new Error('Error'),
};

const bytes: Uint8Array = serialize(object);

const object2 = deserialize(object);

// object deep-equals object2 (except for the Symbol of course)
```

Benchmarks & tests: TODO
npm package: @ottotari/tari-snap
Description: Tari Snap
Latest version: 0.1.2

# TypeScript Example Snap

This snap demonstrates how to develop a snap with TypeScript. It is a simple
snap that displays a confirmation dialog when the `hello` JSON-RPC method is
called.

## Testing

The snap comes with some basic tests, to demonstrate how to write tests for
snaps. To test the snap, run `yarn test` in this directory. This will use
[`@metamask/snaps-jest`](https://github.com/MetaMask/snaps/tree/main/packages/snaps-jest)
to run the tests in `src/index.test.ts`.