open-index/open-npm huggingface dataset:
npm package: @reaktivo/async-flow
Description: Composes and awaits single-argument functions from left to right.
Latest version: 1.0.13

# [async-flow](https://github.com/reaktivo/async-flow/)

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/reaktivo/async-flow/blob/master/LICENSE)
[![npm version](https://img.shields.io/npm/v/@reaktivo/async-flow.svg?style=flat)](https://www.npmjs.com/package/@reaktivo/async-flow)
[![CircleCI Status](https://circleci.com/gh/reaktivo/async-flow.svg?style=shield)](https://circleci.com/gh/reaktivo/async-flow)
[![Coverage](https://img.shields.io/codecov/c/github/reaktivo/async-flow.svg)](https://codecov.io/gh/reaktivo/async-flow)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/reaktivo/async-flow/compare)

async-flow is a tiny javascript function piping utility

## Installation

```sh
npm install -g @reaktivo/async-flow
```

## Usage

```js
import asyncFlow from "@reaktivo/async-flow";

const api = asyncFlow(fetch, res => res.json(), json => json.data);

// Which is equivalent to the following
const api = function(...args) {
  return fetch(...args)
    .then(res => res.json())
    .then(json => json.data);
};

//Or
const api = async function(...args) {
  const response = await fetch(...args);
  const json = await response.json();
  return json.data;
};
```

## License

async-flow is open source software [licensed as MIT](https://github.com/reaktivo/async-flow/blob/master/LICENSE).
npm package: @reaktivo/convert-to-property-controls
Description: [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/reaktivo/convert-to-property-controls/blob/master/LICENSE) [![npm version](https://img.shields.io/npm/v/@reaktivo/convert-to-property-controls.svg?style=flat)](https
Author: Marcel Miranda
Latest version: 1.0.6

# [convert-to-property-controls](https://github.com/reaktivo/convert-to-property-controls/)

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/reaktivo/convert-to-property-controls/blob/master/LICENSE)
[![npm version](https://img.shields.io/npm/v/@reaktivo/convert-to-property-controls.svg?style=flat)](https://www.npmjs.com/package/@reaktivo/convert-to-property-controls)
[![Coverage Status](https://img.shields.io/codecov/c/github/reaktivo/convert-to-property-controls.svg)](https://codecov.io/gh/reaktivo/convert-to-property-controls)
[![CircleCI Status](https://circleci.com/gh/reaktivo/convert-to-property-controls.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/reaktivo/convert-to-property-controls)

convert-to-property-controls is a small library that allows you to convert your propTypes definitions into Framer compatible PropertyControls.

## Installation

```sh
npm install @reaktivo/convert-to-property-controls
```

## License

convert-to-property-controls is open source software [licensed as MIT](https://github.com/reaktivo/convert-to-property-controls/blob/master/LICENSE).
npm package: @reaktivo/declare
Description: A tiny dependency injection library
Author: m@reaktivo.com
Latest version: 0.1.1

# [declare](https://github.com/reaktivo/declare/)

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/reaktivo/declare/blob/master/LICENSE)
[![npm version](https://img.shields.io/npm/v/@reaktivo/declare.svg?style=flat)](https://www.npmjs.com/package/@reaktivo/declare)
[![Coverage Status](https://img.shields.io/coveralls/reaktivo/declare/master.svg?style=flat)](https://coveralls.io/github/reaktivo/declare?branch=master)
[![CircleCI Status](https://circleci.com/gh/reaktivo/declare.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/reaktivo/declare)
[![Greenkeeper badge](https://badges.greenkeeper.io/reaktivo/declare.svg)](https://greenkeeper.io/)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/reaktivo/declare/compare)

## Installation

```sh
npm i @reaktivo/declare
```

## Usage

Imagine you want build a library that fetches json files,

```js
// fetchJson.js
const declare = require("@reaktivo/declare");

module.exports = declare(({ fetch = require("node-fetch") }) => {
  return (...args) => fetch(...args).then(res => res.json());
});
```

When we need to use our tiny library, we simply require it
the following way:

```js
const fetchJson = require("./fetchJson");
fetchJson("https://httpbin.org/ip").then(json => console.log(json.ip));
```

### Dependency injection

Since we don't actually want to call APIs when running our tests, we
inject mocked dependencies:

```js
// fetchJson.test.js
const inject = require("@reaktivo/declare/inject");
const mockFetch = url =>
  Promise.resolve({ json: () => Promise.resolve({ ip: "123.123.123.123" }) });
const fetchJson = inject(require("./fetchJson"))({
  fetch: mockFetch
});

// Now on our test we can make sure no actual http request will go out
// and that the fake API response will resolve
```

## Development

Testing is done with [Jest](https://github.com/facebook/jest) and
is intended to be simple and straight to the point.

```sh
npm test
```

## License

declare is open source software [licensed as MIT](https://github.com/reaktivo/declare/blob/master/LICENSE).
npm package: @reaktivo/nano-graphql-server
Description: This project is not maintained anymore, you should switch to [Apollo v2](https://blog.apollographql.com/announcing-apollo-server-2-2b69fb4702ce)
Author: m@reaktivo.com
Latest version: 0.1.1

# Note

This project is not maintained anymore, you should switch to [Apollo v2](https://blog.apollographql.com/announcing-apollo-server-2-2b69fb4702ce)

# [nano-graphql-server](https://github.com/reaktivo/nano-graphql-server)

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/reaktivo/nano-graphql-server/blob/master/LICENSE)
[![npm version](https://img.shields.io/npm/v/@reaktivo/nano-graphql-server.svg?style=flat)](https://www.npmjs.com/package/@reaktivo/nano-graphql-server)
[![CircleCI Status](https://circleci.com/gh/reaktivo/nano-graphql-server.svg?style=shield)](https://circleci.com/gh/reaktivo/nano-graphql-server)
[![Coverage](https://img.shields.io/codecov/c/github/reaktivo/nano-graphql-server.svg)](https://codecov.io/gh/reaktivo/nano-graphql-server)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/reaktivo/nano-graphql-server/compare)

nano-graphql-server is a tiny convention-over-configuration graphql server

## Installation

```sh
npm install -g @reaktivo/nano-graphql-server
```

## Usage

```js
import { createGqlServer, createSchema } from "@reaktivo/nano-graphql-server";

createGqlServer({
  port,
  apiKey, // for use with APOLLO_ENGINE
  schema: createSchema({
    resolversPath, // relative path to a resolvers js file,
    typesPath // relative path to type definitions
  })
});
```

## License

nano-graphql-server is open source software [licensed as MIT](https://github.com/reaktivo/nano-graphql-server/blob/master/LICENSE).