open-index/open-npm huggingface dataset:
npm package: @rafaelrabaco/cnpj
Description: Validate, generate, format and consult CNPJ numbers
Author: Rafael Rabaço
Latest version: 1.0.1

# CNPJ

[![Maintainability](https://api.codeclimate.com/v1/badges/510e2fbd37767823baa0/maintainability)](https://codeclimate.com/github/rafaelrabaco/cnpj/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/510e2fbd37767823baa0/test_coverage)](https://codeclimate.com/github/rafaelrabaco/cnpj/test_coverage)

This package allows you to validate, format and consult CNPJ documents.

## Installation

To install it, use the following command:

    $ npm install --save @rafaelrabaco/cnpj

If you're using Yarn

    $ yarn add @rafaelrabaco/cnpj

## Usage

### Consult

Returns the information of the CNPJ

```js
import { CNPJ } from '@rafaelrabaco/cnpj';
/** Web Service used to perform this function (https://receitaws.com.br/api) */
CNPJ.info('27865757000102')
  .then(response => {
    console.log(response);
  })
  .catch(err => {
    console.log(err);
  });

CNPJ.info('27.865.757/0001-02', {
    'token': 'TOKEN RECEITAWS' // Optional
    'timeout': 5000 // Optional (Default: 3000)
})
  .then(response => {
    console.log(response);
  })
  .catch(err => {
    console.log(err);
  });
```

### Validate

Checks if it is a valid CNPJ

```js
import { CNPJ } from '@rafaelrabaco/cnpj';
CNPJ.validate('56.112.478/0001-68'); // true
CNPJ.validate('56112478000168'); // true
CNPJ.validate('12.033.793/0001-12'); // false
CNPJ.validate('12033793000112'); // false
CNPJ.validate('22.480.042/0001-00'); // true
```

### Clean

Removes non-numeric characters.

```js
import { CNPJ } from '@rafaelrabaco/cnpj';
CNPJ.clear('43.236.279/0001-10'); // 43236279000110
```

### Format

Add non-numeric characters.

```js
import { CNPJ } from '@rafaelrabaco/cnpj';
CNPJ.format('43236279000110'); // 43.236.279/0001-10
```
npm package: @rafaelrinaldi/curlyq
Description: Convert straight quotes to smart quotes
Author: Rafael Rinaldi
Latest version: 0.3.0

# curlyq [![Actions Status](https://github.com/rafaelrinaldi/curlyq/workflows/ci/badge.svg)](https://github.com/rafaelrinaldi/curlyq/actions)

>Convert straight quotes to smart quotes

## Install

```sh
npm i @rafaelrinaldi/curlyq
```

## Usage

### CLI

```sh
$ curlyq

Usage: curlyq [-] [STRING] [FILE]

  Convert straight quotes to smart quotes

Example:
  $ curlyq \""That's a 'magic' shoe.\""
  “That’s a ‘magic’ shoe.”

Via stdin:
  $ echo \""That's a 'magic' shoe.\"" | curlyq
  “That’s a ‘magic’ shoe.”

Via file:
  $ echo \""That's a 'magic' shoe.\"" > file.txt
  $ curlyq file.txt
  “That’s a ‘magic’ shoe.”

Options:
  -v --version              Display current program version
  -h --help                 Display help and usage details

```

### Node.js

```ts
const { curlyq } = require('@rafaelrinaldi/curlyq')
curlyq(`"That's a 'magic shoe."`) //=> “That’s a ‘magic’ shoe.”
```

### React Component

You must include React as a dependency first:

```sh
npm i react -S
```

```tsx
import React, { FunctionComponent } from 'react'
import { CurlyQ } from '@rafaelrinaldi/curlyq'

export const App: FunctionComponent = () => (
  <CurlyQ>
    "That's a 'magic' shoe."
    <div>
      also
      <div>
        works
        <div>
          with
          <div style={{ background: 'gold' }}>
            "deeply" nested nodes
          </div>
        </div>
      </div>
    </div>
  </CurlyQ>
)
```

## License

MIT © [Rafael Rinaldi](https://rinaldi.io)
npm package: @rafaelrinaldi/hn-cli
Description: CLI to browse Hacker News
Author: Rafael Rinaldi
Latest version: 1.7.1

# hn-cli [![Build Status](https://semaphoreci.com/api/v1/projects/b264dc61-16ef-44f3-8130-4fbb5dd25169/676578/badge.svg)](https://semaphoreci.com/rafaelrinaldi/hn-cli)

> CLI to browse [Hacker News](http://news.ycombinator.com)

[![demo](./demo.png)](https://cloudup.com/iUsrpNT00WI)

## Install

```sh
$ npm install -g @rafaelrinaldi/hn-cli
```

## Usage

```sh
Usage: hn [OPTIONS]

  CLI to browse Hacker News

Example:
  $ hn --limit 10 --keep-open

Options:
  -v --version              Display current software version
  -h --help                 Display help and usage details
  -l --limit                Limit the number of items to display (defaults to 150)
  -k --keep-open            Wether or not to keep the list open after selecting an item (defaults to false)
     --latest               Sort the list by submission date (defaults to false)
```

## Features

* By default it will list stories using the same order as seen on HN
* You can change the list order to display the most recent ones by runnig the program with the `--latest` flag
* You can use Vim arrow keys <kbd>j</kbd> and <kbd>k</kbd> to navigate through the list
* Use <kbd>gg</kbd> to scroll to the first item of the list and <kbd>G</kbd> to scroll to the last one
* Hitting the <kbd>enter</kbd> key will open the URL in your default browser
* Hitting the <kbd>c</kbd> key will open the HN comments for that story on your default browser
* Share an item on Twitter by hitting the <kbd>t</kbd> key
* Hitting the <kbd>r</kbd> key will refresh the stories and update the current list
* A status bar is fixed on the bottom of the screen to provide visual feedback about updates and reading progress
* Use <kbd>esc</kbd>, <kbd>⌃C</kbd> or <kbd>q</kbd> to close the program

## License

MIT © [Rafael Rinaldi](http://rinaldi.io)
npm package: @rafaelrinaldi/hold-up
Description: Wait until a given condition is true
Latest version: 1.0.0

# hold-up [![Build Status](https://semaphoreci.com/api/v1/rafaelrinaldi/hold-up/branches/master/badge.svg)](https://semaphoreci.com/rafaelrinaldi/hold-up)

> Wait until a given condition is true

## Install

```sh
npm install @rafaelrinaldi/hold-up
```

## Usage

```js
import holdUp from '@rafaelrinaldi/hold-up'

async function injectVendorScript() {
  // Asynchronously load a cheesy vendor script that triggers a bunch of other
  // subsequent requests
  const script = document.createElement('script')
  script.setAttribute('src', 'https://cdn.vendor.com/bundle.min.js')
  document.body.appendChild(script)

  // In order to use their SDK you must wait for the instances to be available
  await holdUp(() => window.$vendor && window.$vendor.sdk)

  // Finally use the SDK
  window.$vendor.sdk.show()
}

injectVendorScript()
```

## API

### `holdUp(condition, [timeoutInterval], [retryInterval])`

Returns a `Promise` instance that resolves whenever `condition` returns `true`. Rejects if `condition` is `false` or `timeoutInterval` times out.

#### `condition`

Type: `Function`  

Function that the library will attempt to run until it gets a `true` value back.

#### `timeoutInterval`

Type: `Number`  
Default: `8000`  

The maximum amount of time to wait until execution times out.

#### `retryInterval`

Type: `Number`  
Default: `50`  

The interval between each attempt of calling `condition`.

## License

MIT © [Rafael Rinaldi](rinaldi.io)

---

<p align="center">
  <a href="https://buymeacoff.ee/rinaldi" title="Buy me a coffee">Buy me a ☕</a>
</p>
npm package: @rafaelrinaldi/mdn
Description: Man pages for web APIs using MDN
Author: Rafael Rinaldi
Latest version: 1.1.0

[author]: http://rinaldi.io
[mdn]: https://developer.mozilla.org

# mdn

> Man pages for web APIs using [MDN][mdn]

![screenshot](screenshot.png)

## Install

```sh
$ npm i @rafaelrinaldi/mdn -g
```

## Usage

```sh
$ mdn array.of
$ mdn background-image --language=css
$ # Will open the MDN page on user's default browser
$ mdn function.bind --open
```

## License

MIT © [Rafael Rinaldi][author]
npm package: @rafaelrinaldi/npm-downloads
Description: Get download stats from any package published to npm
Latest version: 2.0.1

# npm-downloads [![Build Status](https://semaphoreci.com/api/v1/projects/2a033503-58f0-4d08-ba32-f883ad912067/680199/badge.svg)](https://semaphoreci.com/rafaelrinaldi/npm-downloads)

> Get download stats from any package published to npm

## Install

```sh
npm i @rafaelrinaldi/npm-downloads -g
```

## Usage

```sh
Usage: npm-downloads <PACKAGE> [OPTIONS]

  Get download stats from any package published to npm

Example:
  $ npm-downloads jquery

Options:
  -v --version              Display current software version
  -h --help                 Display help and usage details
     --json                 Render output as JSON
```

## Notes

- Works with any package published to npm, including scoped packages
- Rendering output as raw JSON is possible

## License

MIT © [Rafael Rinaldi](rinaldi.io)

---

<p align="center">
  <a href="https://buymeacoff.ee/rinaldi" title="Buy me a coffee">Buy me a ☕</a>
</p>
npm package: @rafaelrinaldi/npm-search
Description: [author]: http://rinaldi.io [npm]: https://npmjs.org [npm-gh]: http://github.com/npm/npm
Author: 'Rafael Rinaldi'
Latest version: 1.2.0

[author]: http://rinaldi.io
[npm]: https://npmjs.org
[npm-gh]: http://github.com/npm/npm

# npm-search [![Build Status](https://semaphoreci.com/api/v1/rafaelrinaldi/npm-search/branches/master/badge.svg)](https://semaphoreci.com/rafaelrinaldi/npm-search)

> Faster `npm search`

## Install

```sh
$ npm i @rafaelrinaldi/npm-search -g
```

## Benchmark

| Command | Output |
| :--- | :--- |
| `time npm search typeahead` | `21.70` real `16.41` user `1.78` sys |
| `time npm-search typeahead` | `1.59` real `0.39` user `0.04` sys |

## Notes

* Scrape pages from [npmjs.org][npm] on every run (no caching whatsoever)
* Output look almost exactly the same from `npm search` (shout out to [npm][npm-gh] for being open source)
* Will display the first 20 results available

## License

MIT © [Rafael Rinaldi][author]
npm package: @rafaelrinaldi/whereami
Description: Get your geolocation information using freegeoip.app
Latest version: 2.2.1

# whereami [![Build Status](https://semaphoreci.com/api/v1/projects/a5332a07-61aa-49f9-90e6-49844c5e2231/665179/badge.svg)](https://semaphoreci.com/rafaelrinaldi/whereami)

> Get your geolocation information using [freegeoip.app](http://freegeoip.app)

## Install

```sh
$ npm install -g @rafaelrinaldi/whereami
```

## Usage

```sh
Usage: whereami [OPTIONS]

  Get your geolocation information using freegeoip.app

Example:
  $ whereami
  -23.4733,-46.6658

  $ whereami -f human
  San Francisco, CA, United States

  $ whereami 2.151.255.255 -f human
  Stabekk, Akershus, Norway

Options:
  -v --version              Display current software version
  -h --help                 Display help and usage details
  -f --format               Output format (either human, json or sexagesimal)
  -r --raw                  Output raw data from freegeoip.app
```

## License

MIT © [Rafael Rinaldi](rinaldi.io)

---

<p align="center">
  <a href="https://buymeacoff.ee/rinaldi" title="Buy me a coffee">Buy me a ☕</a>
</p>
npm package: @rafaelsilva81/react-json-view
Description: Interactive react component for displaying javascript arrays and JSON objects.
Author: Mac Gainor
Latest version: 1.26.2

This adds a custom event handler for the main lib, its used for a specific purpose of another project, but it might be useful for someone else. If you don't like the customEvent icon you're free to fork and change it to your liking.

In general, I would recommend using the original lib, as it is more stable and has more features.

**WARNING** the general way color themes work is switched on this lib ever since 1.26.0, so if you're using this lib, you might want to switch to the original lib or make a fork of this lib and change the color scheme back to the original one.