open-index/open-npm huggingface dataset:
npm package: @shortex/perspective-cli
Description: Perspective.js CLI
Latest version: 1.9.4

# Perspective CLI

```bash
Usage: perspective [options] [command]

A convenient command-line client for Perspective.js.  Can convert between Perspective supported format, or host a local web server.

Options:
  -V, --version                 output the version number
  -h, --help                    output usage information

Commands:
  convert [options] [filename]  Convert a file into a new format.  Reads from STDIN if no filename is provided
    Options:
    -f, --format <format>    Which output format to use:  arrow, csv, columns, json.
    -o, --output <filename>  Filename to write to.  If not supplied, writes to STDOUT
    -h, --help               output usage information

  host [options] [filename]     Host a file on a local Websocket/HTTP server using a server-side Perspective.  Reads from STDIN if no filename is provided
    Options:
      -p, --port <port>  Which port to bind to (default: 8080)
      -o, --open         Open a browser automagically
      -h, --help         output usage information
```
npm package: @shortex/perspective-esbuild-plugin
Description: esbuild plugin for Perspective
Latest version: 1.9.4

# `@shortex/perspective-esbuild-plugin`

Applications bundled with `esbuild` can make use of the
`@shortex/perspective-esbuild-plugin` module. A full example can be found in the
repo under [`examples/esbuild-example`](https://github.com/finos/perspective/tree/master/examples/esbuild-example).

```javascript
const esbuild = require("esbuild");
const {PerspectiveEsbuildPlugin} = require("@shortex/perspective-esbuild-plugin");

esbuild.build({
    entryPoints: ["src/index.js"],
    plugins: [PerspectiveEsbuildPlugin()],
    format: "esm",
    bundle: true,
    loader: {
        ".ttf": "file",
    },
});
```

When bundling via `esbuild`, you must also:

-   Use the `type="module"` attribute in your app's `<script>` tag, as this
    build mode is only supported via ES modules.
-   Use the direct imports for the `esm` versions Perspective, specifically
    `@shortex/perspective/dsti/esm/perspective.js` and
    `@shortex/perspective-viewer/dist/esm/perspective-viewer.js`
npm package: @shortex/perspective-jupyterlab
Description: A Jupyterlab extension for the Perspective library, designed to be used with perspective-python.
Latest version: 1.9.4

# Perspective JupyterLab Extension

This extension allows in-lining perspective based charts in jupyterlab notebooks.

[Examples](https://github.com/finos/perspective/tree/master/examples/jupyter-notebooks)

## Installation

### From npm

```bash
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install @shortex/perspective-jupyterlab
```

### PIP

```bash
pip install perspective-python
```
npm package: @shortex/perspective-webpack-plugin
Description: Perspective.js Webpack Plugin
Latest version: 1.9.4

# Perspective Webpack Plugin

For use with [Webpack](https://webpack.js.org/), this plugin allows smaller
& faster loading assets.  The plugin takes care of:

* Copying the Web Worker engine assets to your output directory.
* That's it!

Without this plugin or a manual equivalent of these steps, the WebAssembly
binary we be inlined as a `base64` string in the resulting `.js` asset, which
impacts total asset size and load time.  It will not in any way affect actual
runtime performance - the `inline` and `plugin` compilations modes are
otherwise identical.


## Example

```javascript
const PerspectivePlugin = require("@shortex/perspective-webpack-plugin");

module.exports = {
    entry: "./in.js",
    output: {
        filename: "out.js",
        path: "build"
    },
    plugins: [new PerspectivePlugin()]
};
```