open-index/open-npm huggingface dataset:
npm package: @john_doe_01/js
Description: Metaplex JavaScript API
Author: Metaplex Maintainers
Latest version: 4.12.1

# @metaplex/js &middot; [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/metaplex/js/blob/main/LICENSE) [![npm version](https://img.shields.io/npm/v/@metaplex/js.svg?style=flat)](https://www.npmjs.com/package/@metaplex/js)

Metaplex JavaScript SDK

## Stability

[Stability: 1 - Experimental](https://docs.metaplex.com/stability)

> **In Development** - All interfaces are very likely to change very frequently.
Please use caution when making use of this library. Bugs or behavior changes may
surprise users when Experimental API modifications occur.

## Documentation

- [API Docs](https://metaplex-foundation.github.io/js)
- [Guides](https://docs.metaplex.com/sdk/js/getting-started)

## Community

Join our [Discussions](https://github.com/metaplex-foundation/js/discussions)

## Contributing
Visit [Contributing](CONTRIBUTING.md)

## Good First Issues

See the list of starter issues [here](https://github.com/metaplex-foundation/js/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)
npm package: @john_doe_01/spl-token
Description: SPL Token JavaScript API
Author: Solana Maintainers
Latest version: 3.0.0

# Token JavaScript API

The Token JavaScript library comprises:

* A library to interact with the on-chain program
* A test client that exercises the program
* Scripts to facilitate building the program

## Getting Started

First fetch the npm dependencies, including `@solana/web3.js`, by running:
```bash
$ npm install
```

### Select a Network

The client connects to a local Solana cluster by default.

To enable on-chain program logs, set the `RUST_LOG` environment variable:

```bash
$ export RUST_LOG=solana_runtime::native_loader=trace,solana_runtime::system_instruction_processor=trace,solana_runtime::bank=debug,solana_bpf_loader=debug,solana_rbpf=debug
```

To start a local Solana cluster run:
```bash
$ solana-test-validator
```

Solana cluster logs are available with:
```bash
$ solana --url http://127.0.0.1:8899/ logs
```

### Build the on-chain program

```bash
$ npm run build:program
```

### Run the test client

```bash
$ npm run start
```

## Pointing to a public Solana cluster

Solana maintains three public clusters:
- `devnet` - Development cluster with airdrops enabled
- `testnet` - Tour De Sol test cluster without airdrops enabled
- `mainnet-beta` -  Main cluster

Use npm scripts to configure which cluster.

To point to `devnet`:
```bash
$ npm run cluster:devnet
```

To point back to the local cluster:
```bash
$ npm run cluster:localnet
```

## Releasing

1. (first-time only) Create your account on npmjs.com (with 2FA enabled!) and ask @mvines about granting the publish right and run `npm login`
3. Bump version in `package.json` and `npm install` (to update `package-lock.json`)
4. Create a PR for the version bump
5. Merge the PR and push new git tag on master branch
6. Create release on github.com from the pushed tag
7. Run `npm run build` and `npm publish`
npm package: @john_sear/cookie-banner
Description: Create reusable Cookie Banner regarding the 'ePrivacy Directive' since 2002.
Author: John Sear
Latest version: 1.0.6

# Cookie Banner

> Based on https://gist.github.com/BlackScorp/d7390fead02103c9ab4ea174a8a9b9c0  
Thanks to BlackScorp :-)

This JavaScript can be used, to show a Cookie Banner regarding the [ePrivacy Directive](https://edps.europa.eu/data-protection/our-work/subjects/eprivacy-directive_en) since 2002.

## Usage

Simply add ``<cookie-banner></cookie-banner>`` html tag inside ``body`` in your HTML Document and include the ``cookie-banner.js``;

```html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Web Component - Cookie Banner</title>
</head>
<body>

<cookie-banner></cookie-banner>
<script>
  /** Optional Settings */
  const cookieBannerOptions = {
    title             : 'This is the Project Title',
    text              : 'This is the special Text',
    additionalCookies : ['Statistics', 'Marketing', 'Foo', 'Bar']
  };
</script>
<script defer src="js/cookie-banner.js"></script>
</body>
</html>
```

## Optional Settings

Can be optionally set before including the ``cookie-banner.js`` into your document.

_See ``Usage`` example before._

| Name | Type | Default | Description |
|---|---|---|---|
| ``title`` | String | ``Accept Cookies`` | Used as Banner Title |
| ``text`` | String | ``Cookies are always used`` | Used as Banner Text, i.e. description |
| ``requiredName`` | Boolean | ``Required`` | Use "Required" cookie (if no additional cookies set, this will be always ``true``) |
| ``additionalCookies`` | Array | ``[]`` | Containing the Names for additional Cookies (if empty "Required" cookie will always be shown) |
| ``acceptAllText`` | String | ``Accept All`` | Text for the "accept all" button |
| ``acceptSelectedText`` | String | ``Accept Selected`` | Text for the "accept selected" button |
| ``additionalStyles`` | String | ``''`` | Additional Styles |
npm package: @johnallentech/bool
Description: Generate a random boolean with Chance.js.
Author: Victor Quinn
Latest version: 1.0.0

# bool

## ES Module

```ts
// tree-shakeable import
import { bool } from 'chance'

// returns either `true` or `false` with a 50/50 likelihood
bool()
// returns either `true` or `false` with a 30/70 likelihood
bool({ likelihood: 30 })
```

Return a random boolean value (`true` or `false`).

```ts
bool();
=> true
```

The default likelihood of success (returning `true`) is 50%.
Can optionally specify the likelihood in percent:

```ts
bool({likelihood: 30});
=> false
```

In this case only a 30% likelihood of `true`, and a 70% likelihood of `false`.

## Class Instantiation

Alternatively, you can create an instance of a `Chance` class and call the `bool` method.
This approach avoids instantiating a new PRNG instance on every function call.

```ts
// import the Chance class
import { Chance } from 'chance'

const chance = new Chance('my-random-seed')

// returns either `true` or `false` with a 50/50 likelihood
chance.bool()
// returns either `true` or `false` with a 30/70 likelihood
chance.bool({ likelihood: 30 })
```
npm package: @johnallentech/integer
Description: Generate a random integer with Chance.js.
Author: Victor Quinn
Latest version: 1.0.0

# integer

```js
// usage
chance.integer()
chance.integer({ min: -20, max: 20 })
```

<p class="pullquote">9007199254740991 is 2^53 - 1 and is the largest number value in JavaScript</p>

Return a random integer.

_range: -9007199254740991 to 9007199254740991_

See: [Largest number in JavaScript](http://vq.io/16qnIYj)

```js
chance.integer();
=> -1293235
```

Can optionally provide min and max.

```js
chance.integer({ min: -20, max: 20 })
=> -7
```

These min and max are inclusive, so they are included in the range. This means

```js
chance.integer({ min: -2, max: 2 })
```

would return either -2, -1, 0, 1, or 2.

```js
// Specific case
-2 <= random number <= 2

// General case
min <= random number <= max
```
npm package: @johnallentech/natural
Description: Generate a random natural number with Chance.js.
Author: Victor Quinn
Latest version: 1.0.0

# natural

```js
// usage
chance.natural()
chance.natural({ min: 1, max: 20 })
```

Return a natural number.

_range: 0 to 9007199254740991_

```js
  chance.natural();
  => 125019392395
```

Can optionally provide min and max.

```js
chance.natural({min: 1, max: 20});
=> 14
```

Can optionally provide numbers you wish to exclude.

```js
chance.natural({min: 1, max: 5, exclude: [1, 3]});
=> 2
```

These are inclusive, so they are included in the range. This means
`chance.natural({min: 1, max: 3});` would return either 1, 2, or 3 or:

```js
// Specific case
1 <= random number <= 3

// General case
min <= random number <= max
```

[Natural Number on Wikipedia][natural]

[natural]: https://en.wikipedia.org/wiki/Natural_number
npm package: @johnarleycano/platzom
Description: [A[B[A[D[0[C[C[C[C[C
Author: John Arley
Latest version: 1.0.0

# Platzom

Platzom es un idioma inventado para el [curso de fundamentos de Javascript](https://platzi.com/clases/fundamentos-javascript) de [Platzi](https://platzi.com/clases/fundamentos-javascript).

## Descripción del idioma

 Crearemos un nuevo lenguaje llamado Platzom.
  	- Regla 1
  	Si la palabra termina en "ar", se le quitan esos dos caracteres
  	- Regla 2
 		Si la palabra inicia con "z", se le añade "pe" al final
  	- Regla 3
 		Si la palabra traducida tiene 10 o más letras, se parte a la mitad
 		y se pone un caracter "-"
  	- Regla 4
 		Si la palabra anterior es un palíndromo,
 		ninguna regla anterior cuenta y se devuelve la misma palabra,
 		intercalando mayúsculas y minúsculas

## Instalación

```
npm install platzom
```

## Uso

```
import platzom from 'platzom'

platzom("Programar")
```

## Créditos
-[John Arley](https://twitter.com/johnarleycano)

## Licencia

[MIT](https://opensource.org/licenses/MIT)