open-index/open-npm huggingface dataset:
npm package: @motis-project/motis-client
Description: A JS client for the MOTIS API.
Author: motis-project
Latest version: 2.9.2

# motis-client

Pre-generated JS client for [MOTIS](https://github.com/motis-project/motis) based on the [OpenAPI definition](https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/motis-project/motis/refs/heads/master/openapi.yaml#tag/routing/operation/plan). See there for parameters, responses and changes between API versions depending on MOTIS versions (correlating to motis-client versions).

For example:

```js
const response = await stoptimes({
	throwOnError: true,
	baseUrl: 'https://api.transitous.org',
	headers: {
		'User-Agent': 'my-user-agent'
	},
	query: {
		stopId: 'de-DELFI_de:06412:7010:1:3',
		n: 10,
		radius: 500
	}
});
console.log(response);
```
npm package: @motiz88/animated-expr-test
Description: A tiny language for arithmetic over React Native's Animated values.
Author: Moti Zilberman
Latest version: 0.1.0

# animated-expr

A tiny language for arithmetic over React Native's [Animated](https://facebook.github.io/react-native/docs/animations.html) values.

| JS                                          | `animated-expr`             |
| ------------------------------------------- | --------------------------- |
| `Animated.add(x, y)`                        | `` animated`${x} + ${y}` `` |
| `Animated.multiply(x, y)`                   | `` animated`${x} * ${y}` `` |
| `Animated.divide(x, y)`                     | `` animated`${x} / ${y}` `` |
| `Animated.add(x, Animated.multiply(-1, y))` | `` animated`${x} - ${y}` `` |
| `Animated.modulo(x, y)`                     | `` animated`${x} % ${y}` `` |

## Sample code

```js
import { Animated } from "react-native";
import animated from "animated-expr";

const a = new Animated.Value(1);
const b = animated`1 / ${a}`;

Animated.spring(a, { toValue: 2 }).start();
```

## Getting started

The recommended way of using this package is at compile time, via the included Babel plugin. Otherwise, you will end up compiling expressions at runtime, which is slower and likely not what you want for real-world use.

First, install the package:

```sh
npm install --save-dev animated-expr
```

Then, set up the Babel plugin by adding it to the `plugins` array in your `.babelrc` file. (If you don't have a `.babelrc` file yet, [read this](https://github.com/facebook/react-native/tree/master/babel-preset).)

#### .babelrc

```json
{
  "presets": ["react-native"],
  "plugins": ["animated-expr/babel"]
}
```
npm package: @motiz88/animated-test.macro
Description: A tiny language for arithmetic over React Native's Animated values.
Author: Moti Zilberman
Latest version: 0.0.2

# animated.macro

A tiny language for arithmetic over React Native's [Animated](https://facebook.github.io/react-native/docs/animations.html) values.

| JS                                          | `animated.macro`            |
| ------------------------------------------- | --------------------------- |
| `Animated.add(x, y)`                        | `` animated`${x} + ${y}` `` |
| `Animated.multiply(x, y)`                   | `` animated`${x} * ${y}` `` |
| `Animated.divide(x, y)`                     | `` animated`${x} / ${y}` `` |
| `Animated.add(x, Animated.multiply(-1, y))` | `` animated`${x} - ${y}` `` |
| `Animated.modulo(x, y)`                     | `` animated`${x} % ${y}` `` |

## Installation

```sh
npm install --save-dev animated.macro
```

For the best experience, install and configure [babel-plugin-macros](https://github.com/kentcdodds/babel-plugin-macros) if you haven't already. Alternatively, this package also exports a standalone Babel plugin for use with Babel 6 or 7, under the name `animated.macro/plugin`.

> Note: Whether you use the macro or the plugin, always import `animated` from `"animated.macro"`, as seen below.

## Example

```js
import { Animated } from "react-native";
import animated from "animated.macro";

const a = new Animated.Value(1);
const b = animated`1 / ${a}`;

Animated.spring(a, { toValue: 2 }).start();
```

## Runtime compiler

This package also includes a pure-runtime implementation, mainly intended for use in sandbox environments like Expo Snack, where setting up `babel-plugin-macros` is impractical. You should not rely on it for real-world use in your app, as the compilation overhead may be noticeable.
npm package: @motiz88/pg-then
Description: pg-then: use pg by promise
Author: haoxin
Latest version: 2.0.0


[![NPM version][npm-img]][npm-url]
[![Build status][travis-img]][travis-url]
[![Test coverage][coveralls-img]][coveralls-url]
[![License][license-img]][license-url]
[![Dependency status][david-img]][david-url]

### pg-then

* Use `postgresql` with `promise` api, based on [pg](https://github.com/brianc/node-postgres).

### Install

```bash
$ npm install pg
$ npm install pg-then
```

### Usage

* [Client pooling](https://github.com/brianc/node-postgres#client-pooling)

```js
const pg = require('pg-then')

const pool = pg.Pool('postgres://username:password@localhost/database')

pool
  .query('SELECT ...')
  .then(...)
  .catch(...)
```

* [Use QueryStream](https://github.com/brianc/node-pg-query-stream)

```js
pg.Pool(config)
  .stream('SELECT ...')
  .on('data', data => ...)
  .on('end', () => ...)
  .on('error', err => ...)
```

* [Client instance](https://github.com/brianc/node-postgres#client-instance)

```js
const pg = require('pg-then')

const client = pg.Client('postgres://username:password@localhost/database')

client
  .query('SELECT ...')
  .then(...)
  .catch(...)

// ...

client.end()
```

### License
MIT

[npm-img]: https://img.shields.io/npm/v/pg-then.svg?style=flat-square
[npm-url]: https://npmjs.org/package/pg-then
[travis-img]: https://img.shields.io/travis/coderhaoxin/pg-then.svg?style=flat-square
[travis-url]: https://travis-ci.org/coderhaoxin/pg-then
[coveralls-img]: https://img.shields.io/coveralls/coderhaoxin/pg-then.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/coderhaoxin/pg-then?branch=master
[license-img]: https://img.shields.io/badge/license-MIT-green.svg?style=flat-square
[license-url]: http://opensource.org/licenses/MIT
[david-img]: https://img.shields.io/david/coderhaoxin/pg-then.svg?style=flat-square
[david-url]: https://david-dm.org/coderhaoxin/pg-then
npm package: @motiz88/promise-ftp-common
Description: error classes and other common code used in promise-ftp and promise-sftp
Author: RealtyMaps
Latest version: 2.0.2



Description
===========

promise-ftp-common contains code common to promise-ftp and promise-sftp, in order to create a semi-interchangeable
API between the two.


Install
=======

    # you shouldn't ever need to do this explicitly unless you're using npm 3+
    npm install promise-ftp-common
npm package: @motiz88/react-native-midi
Description: A Web MIDI API polyfill for React Native
Author: Moti Zilberman
Latest version: 0.0.6

# @motiz88/react-native-midi

An experimental [Web MIDI API](https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API) polyfill for React Native.

# Features

- [x] Android support (via `android.media.midi`)
- [x] iOS support (via Core MIDI)
- [x] Web support (on browsers that support the Web MIDI API)
- [ ] Bluetooth scanning, virtual ports, and other nonstandard capabilities

# API

## `requestMIDIAccess(options?)`

Equivalent to [`Navigator.requestMIDIAccess`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestMIDIAccess) in the Web MIDI API. Respects the `sysex` option.

```typescript
import { requestMIDIAccess } from "@motiz88/react-native-midi";

requestMIDIAccess().then((midiAccess) => {
  // Use midiAccess.inputs and midiAccess.outputs
});
```

Refer to the [Web MIDI API docs](https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API) for details.

# Installation

> **NOTE:** This package is experimental and may not work out of the box for you. Please [file an issue](https://github.com/motiz88/react-native-midi/issues) if you encounter a problem.

If using Expo: `expo install @motiz88/react-native-midi`

Otherwise, add the dependency normally with `npm install @motiz88/react-native-midi`, and follow the guide to [installing Expo modules in bare React Native projects](https://docs.expo.dev/bare/installing-expo-modules/)  (one-time setup).

## Configure for iOS

Run `npx pod-install` after installing the npm package.

## Configure for Android

No additional setup necessary.

# Contributing

This project is in its early stages, but please feel free to look at the code and send PRs.
npm package: @motiz88/source-map-merger
Description: Merge generated Source Maps to create a map between the initial source and the final result through multiple transformation and processing steps.
Author: Jakob Westhoff
Latest version: 0.0.1

# Source-Map-Merger

The `source-map-merger` is a CommonJS module, which allows the combination of
multiple Source-Maps into one.

Think of scenario, where multiple processing steps are executed during your
JavaScript build:

1. Transpile your code to JavaScript (CoffeeScript, TypeScript)
2. Dependency Resolution and packaging
3. Minification

Each of those steps creates a Source-Map. But in the end you want a mapping
from your minified code to your original code (Coffee-Script, TypeScript, ...).

In order to archive this a lot of tools, which change your code provide the
possibility to provide an input Source-Map of the previous step. However not
all of them do. That is where `source-map-merger`comes into play.

You simply execute all the different processing steps independently and later
on create a combined Source Map containing the mapping from your source to your
target.

## Usage

`source-map-merger` exports two functions called `createMergedSourceMap` and
`createMergedSourceMapFromFiles` This functions take an array of Source Map
objects or filepaths respectively. The order in which the maps need to be
specified is from the start of the transformation process to the end. Imagine
the above example created the SourceMap files `transpile.map`, `dependency.map`
and `minification.map`. In this case you simply execute the following code to
merge all of them:

    var SourceMapMerger = require("source-map-merger");

    var mergedMap = SourceMapMerger.createMergedSourceMapFromFiles([
        "transpile.map",
        "dependency.map",
        "minification.map"
    ]);

The return value of both functions is a string containing the newly generated
map. If you use this Source Map in conjunction with your final build target it
will automatically map back to your original target sources.

### Ignoring Missing Statements

Occasionally, tools can produce incomplete, non-overlapping source maps, causing
a token in the *generated* file to map to nothing in the source file. When this
occurs, `source-map-merger` will throw an exception.

To ignore these missing source maps, simply specify an additional boolean:

    var mergedMap = SourceMapMerger.createMergedSourceMapFromFiles([
        "transpile.map",
        "dependency.map",
        "minification.map"
    ], true /* Ignore missing statements */);