open-index/open-npm huggingface dataset:
npm package: @pika/plugin-bundle-node
Description: A @pika/pack plugin: Adds a bundled Node.js distribution to your package.
Latest version: 0.9.2

# @pika/plugin-bundle-node

> A [@pika/pack](https://github.com/pikapkg/pack) build plugin.
> Adds a bundled Node.js distribution to your package, built & optimized to run on [Node.js](https://nodejs.org/) with all dependencies included. Useful for reducing the install time for CLIs.


## Install

```sh
# npm:
npm install @pika/plugin-bundle-node --save-dev
# yarn:
yarn add @pika/plugin-bundle-node --dev
```


## Usage

```json
{
  "name": "example-package-json",
  "version": "1.0.0",
  "@pika/pack": {
    "pipeline": [
      ["@pika/plugin-standard-pkg"],
      ["@pika/plugin-build-node"],
      ["@pika/plugin-bundle-node"]
    ]
  }
}
```

For more information about @pika/pack & help getting started, [check out the main project repo](https://github.com/pikapkg/pack).

## Options

- `"sourcemap"` (Default: `"true"`): Adds a [source map](https://www.html5rocks.com/en/tutorials/developertools/sourcemaps/) for this build.
- `"minNodeVersion"` (Default: `"8"`): This plugin will bundle your package for the current minimum [Node.js LTS](https://github.com/nodejs/Release) major version. This option allows you to target later versions of Node.js only.


## Result

1. Adds a bundled Node.js distribution to your built package: `dist-node/index.bundled.js`
  1. Common.js (CJS) Module Syntax.
  1. All dependencies included in this file.

Note that this does not add or modify the "main" entrypoint to your package.json. See `@pika/plugin-simple-bin` for an example of how to automatically point to this bundled build.
npm package: @pika/plugin-bundle-types
Description: A @pika/pack plugin: Bundle & tree-shake all TypeScript definitions into a single file.
Latest version: 0.9.2

# @pika/plugin-bundle-types

> A [@pika/pack](https://github.com/pikapkg/pack) build plugin.
> Bundle & tree-shake all TypeScript definitions into a single file.


## Install

```sh
# npm:
npm install @pika/plugin-bundle-types --save-dev
# yarn:
yarn add @pika/plugin-bundle-types --dev
```


## Usage

```json
{
  "name": "example-package-json",
  "version": "1.0.0",
  "@pika/pack": {
    "pipeline": [
      ["@pika/plugin-ts-standard-pkg"],
      ["@pika/plugin-build-node"],
      ["@pika/plugin-bundle-types"]
    ]
  }
}
```

For more information about @pika/pack & help getting started, [check out the main project repo](https://github.com/pikapkg/pack).

## Options

- `"tsconfig"`: The relative path to the `tsconfig.json` config file to use. Defaults to the top-level project TypeScript config file, if one exists.
- `"entrypoint"` (Default: `"types"`): Customize the package.json manifest entrypoint set by this plugin. Accepts either a string, an array of strings, or `null` to disable entrypoint. Changing this is not recommended for most usage.

## Result

TODO
npm package: @pika/plugin-copy-assets
Description: A @pika/pack plugin: Copies static assets into your built package directory.
Latest version: 0.9.2

# @pika/plugin-copy-assets

> A [@pika/pack](https://github.com/pikapkg/pack) build plugin.
> Copies static assets from your root source directory into the built `pkg/` directory. Useful for non-JS associated files (like CSS, images).


## Install

```sh
# npm:
npm install @pika/plugin-copy-assets --save-dev
# yarn:
yarn add @pika/plugin-copy-assets --dev
```


## Usage

```json
{
  "name": "example-package-json",
  "version": "1.0.0",
  "@pika/pack": {
    "pipeline": [
      ["@pika/plugin-standard-pkg"],
      ["@pika/plugin-build-node", {}]
      ["@pika/plugin-copy-assets", {}]
    ]
  }
}
```

For more information about @pika/pack & help getting started, [check out the main project repo](https://github.com/pikapkg/pack).


## Options

- `"files"` (Default: `["assets/"]`): An array of files/folders to copy into the pkg out directory. Does not support glob pattern matching, but will copy any directories recursively.


## Result

1. See the package description. Copies static assets from your root source directory into the built `pkg/` directory (example: "assets/" => "pkg/assets").
npm package: @pika/plugin-simple-bin
Description: A @pika/pack plugin: Adds a simple CLI wrapper.
Latest version: 0.9.2

# @pika/plugin-simple-bin

> A [@pika/pack](https://github.com/pikapkg/pack) build plugin.
> Adds a simple CLI wrapper to your package and properly configures your package.json `"bin"` field to point to it. Useful for quickly adding a command line interface to your library.


## Install

```sh
# npm:
npm install @pika/plugin-simple-bin --save-dev
# yarn:
yarn add @pika/plugin-simple-bin --dev
```


## Usage

```json
{
  "name": "example-package-json",
  "version": "1.0.0",
  "@pika/pack": {
    "pipeline": [
      ["@pika/plugin-standard-pkg"],
      ["@pika/plugin-build-node"],
      ["@pika/plugin-simple-bin", {"bin": "my-cli"}]
    ]
  }
}
```

For more information about @pika/pack & help getting started, [check out the main project repo](https://github.com/pikapkg/pack).


## Result

1. Adds a simple bin/CLI wrapper to your built package: `dist-node/index.bin.js`
  1. Built for Node.js
  1. Loads your library, and calls an exported `run()` method with the CLI args.
  1. Will load a bundled Node.js distribution if one exists.
1. Configures the built package.json with a new `"bin"` entrypoint, so that npm knows to install your package as a CLI.
npm package: @pika/plugin-source-bucklescript
Description: A @pika/pack plugin: 
Latest version: 0.9.2

# @pika/plugin-source-bucklescript

> A [@pika/pack](https://github.com/pikapkg/pack) build plugin.
> Builds ES2018 JavaScript from ReasonML or OCaml via [BuckleScript](https://bucklescript.github.io).




## Install

```sh
# npm:
npm install @pika/plugin-source-bucklescript --save-dev
# yarn:
yarn add @pika/plugin-source-bucklescript --dev
```


## Usage

```json
{
  "name": "example-package-json",
  "version": "1.0.0",
  "@pika/pack": {
    "pipeline": [
      ["@pika/plugin-source-bucklescript"],
      ["@pika/plugin-build-node"],
      ["@pika/plugin-build-web"],
      ["@pika/plugin-build-types"]
    ]
  }
}
```

For more information about @pika/pack & help getting started, [check out the main project repo](https://github.com/pikapkg/pack).


## Result

Unlike other build plugins, this plugin reads directly from your package `src/` directory. Make sure your code exists in a `src/` directory, with an `src/index.ml` or `src/index.re` file acting as your package entrypoint.

Other build plugins will depend on the resulting distribution, so include this plugin early in your build pipeline for others to use.

1. Adds a modern ES2018 distribution to your built package: `dist-src/`
1. Adds an "esnext" entrypoint to your built `package.json` manifest.
npm package: @pika/plugin-standard-pkg
Description: A @pika/pack plugin: Builds your package source as standard, ES2018 JavaScript.
Latest version: 0.9.2

# @pika/plugin-standard-pkg

> A [@pika/pack](https://github.com/pikapkg/pack) build plugin.
> Builds your package source as standard, ES2018 JavaScript. Supports TypeScript. Supports experimental language features via Babel.

> *Note: If your package is written in TypeScript, check out `@pika/plugin-ts-standard-pkg` which uses TypeScript internally to build your package instead of Babel.*



## Install

```sh
# npm:
npm install @pika/plugin-standard-pkg --save-dev
# yarn:
yarn add @pika/plugin-standard-pkg --dev
```


## Usage

```json
{
  "name": "example-package-json",
  "version": "1.0.0",
  "@pika/pack": {
    "pipeline": [
      ["@pika/plugin-standard-pkg"]
    ]
  }
}
```

For more information about @pika/pack & help getting started, [check out the main project repo](https://github.com/pikapkg/pack).


## Result

Unlike other build plugins, this plugin reads directly from your package `src/` directory. Make sure your code exists in a `src/` directory, with an `src/index.js` or `src/index.ts` file as the package entrypoint.

Other build plugins will depend on this standard ES2018 distribution, so include this plugin early in your build pipeline for others to use.

1. Adds a modern ES2018 distribution to your built package: `dist-src/`
  1. TypeScript supported automatically.
  1. Experimental ESNext JavaScript features are handled via your existing Babel config (`.babelrc` or similar.)
1. Adds an "esnext" entrypoint to your built `package.json` manifest.
npm package: @pika/plugin-transform-imports
Description: A @pika/pack plugin: rewrite imports, if you need that sort of thing.
Latest version: 0.9.2

# @pika/plugin-transform-imports

> A [@pika/pack](https://github.com/pikapkg/pack) build plugin.
> rewrite imports, if you need that sort of thing.

> *Note: This is an advanced plugin that 99.99% of people won't need.*


## Install

```sh
# npm:
npm install @pika/plugin-transform-imports --save-dev
# yarn:
yarn add @pika/plugin-transform-imports --dev
```


## Usage

```js
{
  "name": "example-package-json",
  "version": "1.0.0",
  "@pika/pack": {
    "pipeline": [
      ["@pika/plugin-ts-standard-pkg"],
      ["@pika/plugin-transform-imports", { /* options: see below */ }],
      /* your other build plugins */
    ]
  }
}
```

For more information about @pika/pack & help getting started, [check out the main project repo](https://github.com/pikapkg/pack).


## Options

- `"rewrite"`: An object map of imports to rewrite in some of the dist directories.
npm package: @pika/plugin-ts-standard-pkg
Description: A @pika/pack plugin: Builds your TypeScript package source as standard, ES2018 JavaScript.
Latest version: 0.9.2

# @pika/plugin-ts-standard-pkg

> A [@pika/pack](https://github.com/pikapkg/pack) build plugin.
> Builds your TypeScript package source as standard, ES2018 JavaScript. Also includes type definition files for your package automatically.

> *Note: If your package isn't written in TypeScript, check out the normal `@pika/plugin-standard-pkg` plugin.*


## Install

```sh
# npm:
npm install @pika/plugin-ts-standard-pkg --save-dev
# yarn:
yarn add @pika/plugin-ts-standard-pkg --dev
```


## Usage

```js
{
  "name": "example-package-json",
  "version": "1.0.0",
  "@pika/pack": {
    "pipeline": [
      ["@pika/plugin-ts-standard-pkg", { /* options: see below */ }]
    ]
  }
}
```

For more information about @pika/pack & help getting started, [check out the main project repo](https://github.com/pikapkg/pack).


## Options

This plugin runs `tsc` internally, so it supports all [tsconfig.json](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) options defined in your project-level config file (like `compilerOptions` & `exclude`).

- `"tsconfig"`: Optional, the relative path to the `tsconfig.json` config file to use. Defaults to the top-level project TypeScript config file, if one exists.
- `"args"`: Optional, an array of additional arguments for tsc. Example: `["--build"]`


## Result

Unlike other build plugins, this plugin reads directly from your package `src/` directory. Make sure your code exists in a `src/` directory, with an `src/index.ts` file as the package entrypoint.

Other build plugins depend on a standard ES2018 distribution, so include this plugin early in your build pipeline for others to use.

1. Adds a modern ES2018 distribution to your built package: `dist-src/`
1. Adds type definitions to your package automatically: `dist-types/`
1. Adds an "esnext" entrypoint to your built `package.json` manifest.
1. Adds a "types" entrypoint to your built `package.json` manifest.
npm package: @pika/plugin-wasm-assemblyscript
Description: A @pika/pack plugin: Builds TypeScript as WASM via AssemblyScript.
Latest version: 0.9.2

# @pika/plugin-wasm-assemblyscript

> A [@pika/pack](https://github.com/pikapkg/pack) build plugin.
> Builds TypeScript as WASM via AssemblyScript.




## Install

```sh
# npm:
npm install @pika/plugin-wasm-assemblyscript --save-dev
# yarn:
yarn add @pika/plugin-wasm-assemblyscript --dev
```


## Usage

```json
{
  "name": "example-package-json",
  "version": "1.0.0",
  "@pika/pack": {
    "pipeline": [
      ["@pika/plugin-wasm-assemblyscript"],
      ["@pika/plugin-wasm-bindings"],
      ["@pika/plugin-build-web"]
    ]
  }
}
```

For more information about @pika/pack & help getting started, [check out the main project repo](https://github.com/pikapkg/pack).


## Result

Unlike other build plugins, this plugin reads directly from your package `src/` directory. Make sure your code exists in a `src/` directory, with an `index.ts` file as the package entrypoint.

1. Compiles your TypeScript to WASM: `assets/index.wasm`

Note that this plugin is only responsible for building the WASM asset. Be sure to include JavaScript bindings so that your package can be loaded like any other JavaScript module.
npm package: @pika/plugin-wasm-bindings
Description: A @pika/pack plugin: adds simple JavaScript bindings that work with any WASM file.
Latest version: 0.9.2

# @pika/plugin-wasm-bindings

> A [@pika/pack](https://github.com/pikapkg/pack) build plugin.
> Adds simple JavaScript bindings that work with any WASM file.




## Install

```sh
# npm:
npm install @pika/plugin-wasm-bindings --save-dev
# yarn:
yarn add @pika/plugin-wasm-bindings --dev
```


## Usage

```json
{
  "name": "example-package-json",
  "version": "1.0.0",
  "@pika/pack": {
    "pipeline": [
      ["@pika/plugin-wasm-assemblyscript"],
      ["@pika/plugin-wasm-bindings"],
      ["@pika/plugin-build-web"]
    ]
  }
}
```

For more information about @pika/pack & help getting started, [check out the main project repo](https://github.com/pikapkg/pack).


## Result

1. Adds ES2018 JavaScript bindings to your package: `dist-src/index.js`
1. Adds an "esnext" entrypoint to your built `package.json` manifest.

Note that this plugin is only responsible for building the WASM bindings. Be sure to include a plugin that compiles the relevant WASM asset.
npm package: @pika/react
Description: An actively maintained ESM build of React, the JavaScript library for building user interfaces.
Latest version: 16.13.1

# `react`

React is a JavaScript library for creating user interfaces.

The `react` package contains only the functionality necessary to define React components. It is typically used together with a React renderer like `react-dom` for the web, or `react-native` for the native environments.

**Note:** by default, React will be in development mode. The development version includes extra warnings about common mistakes, whereas the production version includes extra performance optimizations and strips all error messages. Don't forget to use the [production build](https://reactjs.org/docs/optimizing-performance.html#use-the-production-build) when deploying your application.

## Example Usage

```js
var React = require('react');
```
npm package: @pika/react-dom
Description: An actively maintained ESM build of React-DOM, a package for working with the DOM.
Latest version: 16.13.1

# `react-dom`

This package serves as the entry point to the DOM and server renderers for React. It is intended to be paired with the generic React package, which is shipped as `react` to npm.

## Installation

```sh
npm install react react-dom
```

## Usage

### In the browser

```js
var React = require('react');
var ReactDOM = require('react-dom');

class MyComponent extends React.Component {
  render() {
    return <div>Hello World</div>;
  }
}

ReactDOM.render(<MyComponent />, node);
```

### On the server

```js
var React = require('react');
var ReactDOMServer = require('react-dom/server');

class MyComponent extends React.Component {
  render() {
    return <div>Hello World</div>;
  }
}

ReactDOMServer.renderToString(<MyComponent />);
```

## API

### `react-dom`

- `findDOMNode`
- `render`
- `unmountComponentAtNode`

### `react-dom/server`

- `renderToString`
- `renderToStaticMarkup`