open-index/open-npm huggingface dataset:
npm package: @reaktivo/rq
Description: rq is a jq inspired command-line swiss-army tool.
Author: m@reaktivo.com
Latest version: 0.1.7

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

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

rq is a jq inspired command-line swiss-army tool

## Installation

```sh
npm install -g @reaktivo/rq
```

## Usage

```sh
rq 'fetch`https://httpbin.org/ip`.then(res => res.json()).then(res => res.origin)'
77.173.111.54

# Since we also expose lodash/fp, the previous command is equivalent to the following
rq 'fetchJson `https://httpbin.org/ip`, get `origin`, split `.`'
77.173.111.54

rq 'fetchJson `https://httpbin.org/ip`' 'get `origin`' 'split `.`'
```

Out of the box, **rq** allows you to safely evaluate
javascript with the following globals exposed:

* [x] fetch: A browser compatible fetch implementation
* [x] fetchJson, fetchBody: Shortcuts for the fetch function
* [x] [lodash/fp methods](https://github.com/lodash/lodash/wiki/FP-Guide)
* [ ] Rxjs Operators: map, filter, switchMap, etc

## Development

Testing is done via the [tap](https://github.com/tapjs/node-tap) and
is intended to be simple and straight to the point.

```sh
npm test
```

## Acknowledgements

I'm thankful to the authors of the following related projects which server as inspiration to rq:

* [jq](https://stedolan.github.io/jq/)
* [gron](https://github.com/tomnomnom/gron)

## License

rq is open source software [licensed as MIT](https://github.com/reaktivo/rq/blob/master/LICENSE).
npm package: @reaktivo/spy-on-prop-types
Description: [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/reaktivo/spy-on-prop-types/blob/master/LICENSE) [![npm version](https://img.shields.io/npm/v/@reaktivo/spy-on-prop-types.svg?style=flat)](https://www.npmjs.com/packa
Author: Marcel Miranda
Latest version: 1.0.11

# [spy-on-prop-types](https://github.com/reaktivo/spy-on-prop-types/)

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

spy-on-prop-types is a small library that allows you to spy on your propTypes definitions.

## Installation

```sh
npm install @reaktivo/spy-on-prop-types
```

## Usage

You should first start by registering the library so it can spy on your propTypes definitions

```js
import "spy-on-prop-types/register";
```

After that, you will be able to access your propTypes passed arguments by
accessing the `definition` and the `required` property of a propType.

```js
MyComponent.propTypes = {
  options: PropTypes.oneOf(["a", "b", "c"]).isRequired
};

console.log(MyComponent.propTypes.options);

/*
{
  definition: ["a", "b", "c"],
  required: true,
  type: 'oneOf',
}
*/
```

## License

spy-on-prop-types is open source software [licensed as MIT](https://github.com/reaktivo/spy-on-prop-types/blob/master/LICENSE).