open-index/open-npm huggingface dataset:
npm package: @hurifajri/tiny
Description: Removes all spaces from a string
Latest version: 2.0.0

# @hurifajri/tiny

![npm (scoped)](https://img.shields.io/npm/v/@hurifajri/tiny)

Removes all spaces from a string.

## Install

```
$ npm install @hurifajri/tiny
```

## Usage

```js
const tiny = require('@hurifajri/tiny')

tiny('So much space!')
//=> "Somuchspace!"

tiny(1337)
//=> Uncaught TypeError: Tiny wants a string!
//    at tiny (<anonymous>:2:41)
//    at <anonymous>:1:1
```
npm package: @hurl/cli
Description: Create template-generated files with ease from the Command Line
Author: Yash Totale
Latest version: 1.0.5

<p align="center"><img src="https://raw.githubusercontent.com/hurl-org/hurl/main/static/logo-dark.png" width="300"><p>

<h2 align="center">Hurl: <small>Template File Generator</small></h2>

## Table of Contents <!-- omit in toc -->

- [Installation](#installation)
- [Commands](#commands)
  - [`init`](#init)
  - [`generate`](#generate)

## Installation

Using [npm](https://www.npmjs.com):

```shell
npm install -g @hurl/cli
```

<p align="center"><img src="https://raw.githubusercontent.com/hurl-org/hurl/main/packages/cli/static/installation-npm.gif" alt="NPM Installation GIF" width="400"></img></p>

Using [yarn](https://yarnpkg.com/):

```shell
yarn global add @hurl/cli
```

<p align="center"><img src="https://raw.githubusercontent.com/hurl-org/hurl/main/packages/cli/static/installation-yarn.gif" alt="Yarn Installation GIF" width="400"></img></p>

## Commands

### `init`

Initialize Hurl

#### Options

- `--skip`: Skip prompts and create default config
  - Type: `boolean`
  - Default: false
  - Alias: `-s`
- `--examples`: Include example templates when creating config
  - Type: `boolean`
  - Default: true
  - Alias: `-e`

#### Examples

- Basic (with prompts & examples)

  ```shell
  $ hurl init
  ```

  Resulting folder structure:

  ```
  project
  │
  └───.hurl
  │   │   .hurl.<js|json|yml|ts>
  │   │
  │   └───templates
  │       │   <language>-example.<js|ts>
  │       │   <language>-example.<js|ts>
  │       │   ...
  ```

- Skip prompts

  ```shell
  $ hurl init -s
  $ hurl init --skip
  $ hurl init --skip=true
  ```

  Resulting folder structure:

  ```
  project
  │
  └───.hurl
  │   │   .hurl.json
  │   │
  │   └───templates
  │       │   <empty>
  ```

- Don't create example templates

  ```shell
  $ hurl init -e=false
  $ hurl init --examples=false
  $ hurl init --no-examples
  ```

  Resulting folder structure:

  ```
  project
  │
  └───.hurl
  │   │   .hurl.<js|json|yml|ts>
  │   │
  │   └───templates
  │       │   <empty>
  ```

### `generate`

Generate files from a template

#### Options

- `--paths`: The paths to the new files
  - Type: `string[]`
  - Alias: `-p`
  - **Required**
- `--template`: The name of the template file/folder
  - Type: `string`
  - Alias: `-t`
  - **Required**
- `--confirm`: Should confirm when overriding an existing file
  - Type: `boolean`
  - Default: true
- `--<some-variable-name>`: Value for some template variable
  - Type: `string`

#### Examples

- Create single file with no variables

  ```shell
  $ hurl generate -p example.js -t template.js
  ```

- Create multiple files with no variables

  ```shell
  $ hurl generate -p example.js example2.js -t template.js
  ```

- Create files with variables

  ```shell
  $ hurl generate -p example.js -t example.js --var=value
  ```
npm package: @hurl/core
Description: Create template-generated files with ease
Author: Yash Totale
Latest version: 1.0.5

<p align="center"><img src="https://raw.githubusercontent.com/hurl-org/hurl/main/static/logo-dark.png" width="300"><p>

<h2 align="center">Hurl: <small>Template File Generator</small></h2>

## Table of Contents <!-- omit in toc -->

- [Installation](#installation)

## Installation

Using [npm](https://www.npmjs.com):

```shell
npm install @hurl/core --save-dev
```

<p align="center"><img src="https://raw.githubusercontent.com/hurl-org/hurl/main/packages/core/static/installation-npm.gif" alt="NPM Installation GIF" width="400"></img></p>

Using [yarn](https://yarnpkg.com/):

```shell
yarn add @hurl/core --dev
```

<p align="center"><img src="https://raw.githubusercontent.com/hurl-org/hurl/main/packages/core/static/installation-yarn.gif" alt="Yarn Installation GIF" width="400"></img></p>
npm package: @hurl/utils
Description: Internal utilities for hurl packages
Author: Yash Totale
Latest version: 1.0.5

<p align="center"><img src="https://raw.githubusercontent.com/hurl-org/hurl/main/static/logo-dark.png" width="300"><p>

<h2 align="center">Hurl: <small>Template File Generator</small></h2>

## Table of Contents <!-- omit in toc -->

- [Installation](#installation)

## Installation

Using [npm](https://www.npmjs.com):

```shell
npm install @hurl/utils --save-dev
```

<p align="center"><img src="https://raw.githubusercontent.com/hurl-org/hurl/main/packages/utils/static/installation-npm.gif" alt="NPM Installation GIF" width="400"></img></p>

Using [yarn](https://yarnpkg.com/):

```shell
yarn add @hurl/utils --dev
```

<p align="center"><img src="https://raw.githubusercontent.com/hurl-org/hurl/main/packages/utils/static/installation-yarn.gif" alt="Yarn Installation GIF" width="400"></img></p>
npm package: @hurongxing/d3-v4-contextmenu
Description: context menu with d3.js v4
Latest version: 1.2.2
Deprecated: false

# d3-v4-contextmenu
context menu with d3.js v4.

# Demo
http://plnkr.co/edit/i84SdzHnhKwHgZB21lpe?p=info

# Install
```
npm i @atago0129/d3-v4-contextmenu
```

# Useage
```html
<script type="text/javascript" src="https://d3js.org/d3.v4.min.js"></script>
<script type="text/javascript" src="./dist/d3-v4-contextmenu.js"></script>
<script type="text/javascript">
  var items = [
    {
      label: function (d) {
        return d;
      },
      items: [
        {
          label: "red",
          onClick: function () {
            this.style.fill = "#ff0000";
          }
        },
        {
          label: "blue",
          action: function () {
            this.style.fill = "#0000ff";
          }
        },
        {
          label: "index",
          action: function (d, i) {
            alert(i + 1);
          }
        }
      ]
    },
    {
      label: "background",
      items: [
        {
          label: "red",
          onClick: function () {
            svg.node().style.background = "#ff0000";
          }
        },
        {
          label: "blue",
          action: function () {
            svg.node().style.background = "#0000ff";
          }
        },
        {
          label: "pink",
          action: function() {
            alert('pink is clicked!');
          },
          items: function() {
            return [
              {
                label: "deep pink",
                action: function () {
                  svg.node().style.background = "#ff1493";
                }
              },
              {
                label() {
                  return "shocking pink";
                },
                action() {
                  svg.node().style.background = "#fc0fc0";
                }
              }
            ];
          }
        }
      ]
    }
  ];

  svg = d3.select('#main')
    .append('svg')
    .attr('width', '100%')
    .attr('height', '100%');

  svg.selectAll('circles')
    .data(['circle1', 'circle2', 'circle3', 'circle4'])
    .enter()
    .append('circle')
    .attr('r', 20)
    .attr('fill', '#ff6040')
    .attr('cx', function(d, i) {
      return (i + 1) * 100;
    })
    .attr('cy', function() {
      return 100;
    })
    .on('contextmenu', d3.contextmenu(items));

  svg.selectAll('rect')
    .data(['rect1', 'rect2', 'rect3', 'rect4'])
    .enter()
    .append('rect')
    .attr('x',  function(d, i) {
      return (i + 1) * 100 - 20;
    })
    .attr('y', function() {
      return 200;
    })
    .attr('width', 40)
    .attr('height', 40)
    .attr('fill', '#8bff5b')
    .on('contextmenu', d3.contextmenu(items));
</script>
```
or
```ecmascript 6
import {contextmenu} from "@atago0129/d3-v4-contextmenu";

rect.on('contextmenu', contextmenu(items));
```