open-index/open-npm huggingface dataset:
npm package: @safecoin/rustbin
Description: Synchronizes a Rust binary version with the related Rust crate
Author: Thorsten Lorenz
Latest version: 0.3.1

# rustbin [![Build Lint and Test Rustbin](https://github.com/metaplex-foundation/rustbin/actions/workflows/rustbin.yml/badge.svg)](https://github.com/metaplex-foundation/rustbin/actions/workflows/rustbin.yml)

Synchronizes a Rust binary version with the related Rust crate.

## Anchor Example

### Prepare Config

```js
const path = require('path');
const rootDir = path.join(__dirname, 'cargo');
const cargoToml = path.join(__dirname, '..', '..', 'program', 'Cargo.toml');

const config = {
  rootDir,
  binaryName: 'anchor',
  binaryCrateName: 'anchor-cli',
  libName: 'anchor-lang',
  dryRun: false,
  cargoToml,
};
```

### Checking Versions

```js
const { rustbinCheck } = require('@metaplex-foundation/rustbin');
const { satisfies, libVersion, binVersion } = await rustbinCheck({
console.log(`${binVersion} %s ${libVersion}`, satisfies ? 'satisfies' : 'does not satisfy');
```

### Check and Install If Needed

```js
const { rustbinMatch, confirmAutoMessageConsole } = require('@metaplex-foundation/rustbin');
const { cmd, fullPathToBinary } = await rustbinMatch(config, confirmAutoMessageConsole);
console.log(`${fullPathToBinary} installed via ${cmd}`);
```

## API

Please consult the full API [here](https://metaplex-foundation.github.io/rustbin/docs/).

## LICENSE

Apache-2.0
npm package: @safecoin/safe-memo
Description: SPL Memo Program JS API
Author: Safecoin Labs Maintainers
Latest version: 0.2.1

# `@solana/safe-memo`

A TypeScript library for interacting with the SPL Memo program.

## Links

- [TypeScript Docs](https://solana-labs.github.io/safecoin-program-library/memo/js/)
- [Install](#install)
- [Build from Source](#build-from-source)

## Install

```shell
npm install --save @solana/safe-memo @safecoin/web3.js
```
_OR_
```shell
yarn add @solana/safe-memo @safecoin/web3.js
```

## Build from Source

0. Prerequisites

* Node 16+
* NPM 8+

1. Clone the project:
```shell
git clone https://github.com/fair-exchange/safecoin-program-library.git
```

2. Navigate to the library:
```shell
cd safecoin-program-library/memo/js
```

3. Install the dependencies:
```shell
npm install
```

4. Build the library:
```shell
npm run build
```

5. Run the tests:
```shell
npm run test
```