open-index/open-npm huggingface dataset:
npm package: @macrometa/cloud-workspaces
Description: Macrometa Cloud Workspaces CLI
Author: Felipe L. S. Mendes
Latest version: 1.0.0-rc.4

# Macrometa Cloud Workspaces CLI

**Macrometa Cloud Workspaces CLI** (`cw`) is a command-line tool for interacting with the Macrometa Cloud Workspaces AI assistant. You can ask questions, get answers, and keep a conversation from your terminal. Ask multiple questions until you type `exit` or `quit`.

---

## CLI Commands

Our CLI provides a chat assistant which you can interact asking questions until you type `exit` or `quit` but it can also work as a one-time question assistant if you don't enter any option.

| Command      | Description                                                                                          |
| ------------ | ---------------------------------------------------------------------------------------------------- |
| `version`    | Build a PhotonIQ FaaS function from a specified local template.                                      |
| `help`       | Shows the help and available commands for this tool.                                                 |
| `login`      | Log in to the Macrometa Cloud Workspaces CLI service by setting up the proper environment variables. |
| `exit,quit`  | Exit the application while running the assistant.                                                    |
| `[question]` | Ask a one-time question without entering in the assistant.                                           |
npm package: @macropygia/vite-plugin-connect-middleware
Description: Vite plugin to configure middleware for dev and preview servers
Author: macropygia
Latest version: 0.0.9

# @macropygia/vite-plugin-connect-middleware

[![npm version](https://img.shields.io/npm/v/@macropygia/vite-plugin-connect-middleware.svg?style=flat-square)](https://www.npmjs.com/package/@macropygia/vite-plugin-connect-middleware)
[![MIT](https://img.shields.io/npm/l/@macropygia/vite-plugin-connect-middleware?style=flat-square)](./LICENSE)
[![TypeScript](https://img.shields.io/badge/TypeScript-3178c6?style=flat-square&logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
[![Vite](https://img.shields.io/badge/Vite-646cff?style=flat-square&logo=Vite&logoColor=white)](https://vitejs.dev/)

**English** | [日本語](README.ja_JP.md)

Vite plugin to configure middleware for dev and preview servers.

- **This package is currently unstable.**
    - Breaking changes may occur without any notice, even if in patch releases.
    - See [CHANGELOG](CHANGELOG.md) for changes.
- This package [only works as ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
    - `"type": "module"` is required.

## Usage

Ref. [Use middleware - Connect](https://github.com/senchalabs/connect#use-middleware)

### Both servers use the same middleware

```js
// vite.config.js
import { defineConfig } from 'vite'
import vitePluginConnectMiddleware from '@macropygia/vite-plugin-connect-middleware'

const reDownloads = /^\/downloads\/(?<dir>sound|movie)\/(?<path>.*)$/

export default defineConfig({
  plugins: [
    vitePluginConnectMiddleware(
      (req, res, next) => {
        if (req.url) {
          if (req.url.startsWith('/app/')) {
            req.url = '/app/'
          } else if (reDownloads.test(req.url)) {
            const reResult = req.url.match(reDownloads)
            res.writeHead(301, {
              Location: `https://example.com/downloads/${
                reResult.groups['dir']
              }/${reResult.groups['path']}`,
            })
          }
        }
        return next()
      }
    ),
  ],
})
```

### Servers use different middleware

```js
vitePluginConnectMiddleware({
  // for dev server
  dev: (req, res, next) => {
    // ...
  },
  // for preview server
  preview: (req, res, next) => {
    // ...
  },
}),
```

- `dev` and `preview` are optional
npm package: @macropygia/vite-plugin-glob-input
Description: Vite plugin to add files to build.rollupOptions.input using fast-glob
Author: macropygia
Latest version: 0.0.18

# @macropygia/vite-plugin-glob-input

[![npm version](https://img.shields.io/npm/v/@macropygia/vite-plugin-glob-input.svg?style=flat-square)](https://www.npmjs.com/package/@macropygia/vite-plugin-glob-input)
[![MIT](https://img.shields.io/npm/l/@macropygia/vite-plugin-glob-input?style=flat-square)](./LICENSE)
[![TypeScript](https://img.shields.io/badge/TypeScript-3178c6?style=flat-square&logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
[![Vite](https://img.shields.io/badge/Vite-646cff?style=flat-square&logo=Vite&logoColor=white)](https://vitejs.dev/)

**English** | [日本語](README.ja_JP.md)

Vite plugin to add files to `build.rollupOptions.input` using fast-glob.

- **This package is currently unstable.**
    - Breaking changes may occur without any notice, even if in patch releases.
    - See [CHANGELOG](CHANGELOG.md) for changes.
- This package [only works as ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
    - `"type": "module"` is required in the package.json of the project using this plugin.
- Suitable for a traditional static site.
- Auto-generate alias from directory and file name.
    - `/index.html` -> `home`
    - `/foo.html` -> `root_foo`
    - `/foo/index.html` -> `foo`
    - `/foo/bar.html` -> `foo_bar`
- Merge `build.rollupOptions.input` if it already exists.
    - Except string
    - No duplicate check

## Usage

```js
// vite.config.js
import { defineConfig } from 'vite'
import vitePluginGlobInput from '@macropygia/vite-plugin-glob-input'

export default defineConfig({
  plugins: [
    vitePluginGlobInput({
      patterns: 'src/**/*.html',
    }),
  ],
})
```

## Options

| Parameter      | Type                 | Default | Required |
| -------------- | -------------------- | ------- | -------- |
| `patterns`     | `string \| string[]` |         | Yes      |
| `options`      | `object`             |         | No       |
| `disableAlias` | `boolean`            | `false` | No       |
| `homeAlias`    | `string`             | `home`  | No       |
| `rootPrefix`   | `string`             | `root`  | No       |
| `dirDelimiter` | `string`             | `-`     | No       |
| `filePrefix`   | `string`             | `_`     | No       |

### patterns

- Same as the fast-glob patterns
- Ref. [Pattern syntax - fast-glob](https://github.com/mrmlnc/fast-glob#pattern-syntax)

### options

- Same as the fast-glob options.
    - `options.absolute` is forced to be `true` .
- Ref. [Options - fast-glob](https://github.com/mrmlnc/fast-glob#options-3)

### disableAlias

- Disable alias auto-generation.
- Change type of `build.rollupOptions.input` to `string[]`.

### homeAlias

Alias for index in root directory.

> /index.html -> home

### rootPrefix

Alias for root directory. It will use when the root directory has non-index files.

> /foo.html -> root_foo

### dirDelimiter

Delimiter for joining directory names.

> /foo/bar/index.html -> foo-bar

### filePrefix

Prefix for non-index files.

> /foo/bar/baz.html -> foo-bar_baz
npm package: @macropygia/vite-plugin-importer-invalidator
Description: Vite plugin to invalidate the importers of the target file when the file is modified.
Author: macropygia
Latest version: 0.0.17

# @macropygia/vite-plugin-importer-invalidator

[![npm version](https://img.shields.io/npm/v/@macropygia/vite-plugin-importer-invalidator.svg?style=flat-square)](https://www.npmjs.com/package/@macropygia/vite-plugin-importer-invalidator)
[![MIT](https://img.shields.io/npm/l/@macropygia/vite-plugin-importer-invalidator?style=flat-square)](./LICENSE)
[![TypeScript](https://img.shields.io/badge/TypeScript-3178c6?style=flat-square&logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
[![Vite](https://img.shields.io/badge/Vite-646cff?style=flat-square&logo=Vite&logoColor=white)](https://vitejs.dev/)

**English** | [日本語](README.ja_JP.md)

Vite plugin to invalidate the importers of the target file when the file is modified.

- **This package is currently unstable.**
    - Breaking changes may occur without any notice, even if in patch releases.
    - See [CHANGELOG](CHANGELOG.md) for changes.
- This package [only works as ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
    - `"type": "module"` is required in the package.json of the project using this plugin.
- Works on dev server
- The module of the target file must have its importers.
    - The module here means the module in HMR of Vite.

## Usage

```js
// vite.config.js
import { defineConfig } from 'vite'
import vitePluginImporterInvalidator from '@macropygia/vite-plugin-importer-invalidator'

export default defineConfig({
  plugins: [
    vitePluginImporterInvalidator({
      include: '**/_*.scss',
    }),
  ],
})
```

## Options

| Parameter | Type                 | Default | Required |
| --------- | -------------------- | ------- | -------- |
| `include` | `string \| string[]` |         | Yes      |
| `exclude` | `string \| string[]` |         | No       |

### include, exlude

- Ref. [Globbing features - Picomatch](https://github.com/micromatch/picomatch#globbing-features)
npm package: @macrostrat/dbgeo-stream
Description: A Node.js module for converting database queries to GeoJSON
Author: John J Czaplewski
Latest version: 1.0.0

# dbgeo-stream

A simplified streaming version of [dbgeo](https://github.com/jczaplew/dbgeo) for use with [node-pg-query-stream](https://github.com/brianc/node-pg-query-stream). Takes as an input a readable object stream, and each object must have a property `geom` which is a WKB geometry. Will output a valid GeoJSON `FeatureCollection` as a stream that can be piped directly to a file or HTTP response.


###### Installation
````
npm install @macrostrat/dbgeo-stream
````

###### Example Usage
````javascript
const dbgeoStream = require('@macrostrat/dbgeo-stream')

// Connect to Postgres, etc...
let query = new QueryStream('SELECT id, geom FROM land', [])
client.query(query)
  .pipe(dbgeoStream)
  .pipe(res)

````

## License
MIT
npm package: @macrostrat/map-components
Description: React components for vector maps
Author: Daven Quinn
Latest version: 0.2.6

# map-components

React components for vector maps. A thin wrapper around d3.js.
This library is similar in structure
to [React Simple Maps](https://www.react-simple-maps.io/examples/usa-with-state-labels/)
but with a enhanced canvas and granular projection support.

## Installation

```
npm install @macrostrat/map-components
```

Include stylesheets into your app from `@macrostrat/map-components/dist/esm/index.css`.

## Changelog

### Summer 2019

- Code created as part of `corelle` project

### December 2019

- Initial vendorization of library for use in column renderer widget

### April 2020

- Complete move towards typescript
- Update bundler strategy

### [0.2.0] August 2020

- Improve typings
- Fix bug with projection clipping and `Sphere` geometry.

### [0.2.1]

- Add better state handling and ability to reset projection.
npm package: @macrostrat/pg-helper
Description: Utilities and boilerplate for working with Postgres
Author: John J Czaplewski
Latest version: 2.0.0

# pg-helper

Boilerplate for working with Postgres in Node

## Installation

````
npm install --save @macrostrat/pg-helper
````

## Usage

````javascript
const pgHelper = require('@macrostrat/pg-helper')

let pg = new pgHelper({
  host: 'localhost',
  user: 'postgres',
  port: 5432,
  database: 'database'
})

pg.query('SELECT pork FROM pig WHERE fatty = $1', [ true ], (error, result) => {
   // result 
})

pg.queryStream('SELECT ice_cream FROM freezer WHERE flavor = $1', [ 'chocolate' ]))
  .pipe(fs.createWriteStream('./treats.txt'))
````

## API

#### query(sql, params, callback(error, rows))

#### queryStream(sql, params)


## License
MIT
npm package: @macrovision/core
Description: Macro Vision Core is responsible for the core declaration and data processing of the entire framework
Author: Bin
Latest version: 1.0.14

<!--
 * @Author: Bin
 * @Date: 2023-05-26
 * @FilePath: /macro-vision/packages/core/README.md
-->

# macro vision core

> Macro Vision Core is responsible for the core declaration and data processing of the entire framework
npm package: @macrow/aliyun-vod-upload-js
Description: 阿里云点播视频上传web端
Author: Macrow
Latest version: 1.0.1

# 阿里云点播视频上传js

只是对官方sdk进行一个封闭，具体用法与官方一致。详情：https://help.aliyun.com/document_detail/52204.html?spm=a2c4g.11186623.6.812.79a23f94w9OQX2
npm package: @macrow/react-aliplayer
Description: React component wrapper for aliplayer.
Author: Macrow
Latest version: 0.3.5

<h1 align="center"> React AliPlayer </h1>

React component wrapper for aliplayer.

## 🏗 安装

```sh
# npm 安装
npm install --save @pansy/react-aliplayer

# yarn 安装
yarn add @pansy/react-aliplayer
```

## 🔨 使用

```tsx
import React, { FC } from 'react';
import Player from '@pansy/react-aliplayer';

const Example: FC = () => {
  return (
    <div style={{ height: 500 }}>
      <Player
        source="//vjs.zencdn.net/v/oceans.mp4"
      />
    </div>
  );
};

export default Example;
```