open-index/open-npm huggingface dataset:
npm package: @joegesualdo/indent-string
Description: Indent a string.
Latest version: 0.0.6

## indent-string [![Build Status](https://travis-ci.org/joegesualdo/indent-string-js.svg?branch=master)](https://travis-ci.org/joegesualdo/indent-string-js)
> Indent a string.

## Install
```
$ npm install --save @joegesualdo/indent-string
```

## Usage
```javascript
import indentString from '@joegesualdo/indent-string'

indentString('hello', 2);
// '  hello'
```

## Test
```
$ npm test
```
## API
### `indentString(str, [count], [character])`

| Name      | Type     | Required | Default | Description                             |
|-----------|----------|----------|---------|---------------------------------------- |
| str       | `String` |  `yes`   |  `N/A`  | The string you want to indent           |
| count     | `Number` |  `no`    |  `0`    | The number of spaces you want to indent |
| character | `Number` |  `no`    |  ` `    | The number of spaces you want to indent |

```javascript
import indentString from ('@joegesualdo/indent-string')

indentString('hello', 2);
// '  hello'
indentString('hello', 2, '.');
// '..hello'
```
## Build
```
$ npm run build
```

## License
MIT © [Joe Gesualdo]()
npm package: @joegesualdo/is-empty-line
Description: Detect if a line is empty.
Latest version: 0.0.1

## is-empty-line [![Build Status](https://travis-ci.org/joegesualdo/is-empty-line-js.svg?branch=master)](https://travis-ci.org/joegesualdo/is-empty-line-js)
> Detect if a line is empty.

## Install
```
$ npm install --save @joegesualdo/is-empty-line
```

## Usage
```javascript
import isEmptyLine from ('@joegesualdo/is-empty-line')

isEmptyLine('\n  ');
// => true

isEmptyLine('  ');
// => true

isEmptyLine('x');
// => false
```

## Test
```
$ npm test
```
## API
### `isEmptyLine(str)`

| Name      | Type     | Required | Default | Description                             |
|-----------|----------|----------|---------|---------------------------------------- |
| str       | `String` |  `yes`   |  `N/A`  | The string you want to test             |

```javascript
import isEmptyLine from ('@joegesualdo/is-empty-line')

isEmptyLine('\n  ');
// => true

isEmptyLine('  ');
// => true

isEmptyLine('x');
// => false
```

## Build
```
$ npm run build
```

## License
MIT © [Joe Gesualdo]()
npm package: @joegesualdo/multi-prompt-node
Description: Multiple command line prompts.
Latest version: 0.0.5

## multi-prompt [![Build Status](https://travis-ci.org/joegesualdo/multi-prompt-node.svg?branch=master)](https://travis-ci.org/joegesualdo/multi-prompt-node)
> Multiple command line prompts.

## Install
```
$ npm install --save @joegesualdo/multi-prompt-node
```

![demo](https://github.com/joegesualdo/multi-prompt-node/raw/master/demo.gif)

## Usage
```javascript
import MultiPrompt from '@joegesualdo/multi-prompt-node';

const questions = [
  {
    prompt: `What's your name?`,
  },
  {
    prompt: `How old are you?`,
  },
]

new MultiPrompt(questions)
.on('done', result => {
  console.log(result)
})
.begin()
```

## Test
```
$ npm test
```
## API
### `MultiPrompt(prompts, [options])`
> Instantiates a new prompt

#### Params
| Name |   Type  | Default |   Description    |
|------|---------|---------|------------------|
| prompts | `Array<Object>` |   `[]`   | An object representing properties of a prompt |
| options | `Object` |   `{}`   | Configuration options |

#### Example Promp Object:
```
{
  identifier: 'who',
  prompt: ` Where do you live?`,
  dependent: {
    question: 'language',
    answers: [
      'ruby'
    ]
  },
  validation: (answer) => {
    return ['node', 'ruby'].indexOf(answer) !== -1;
  }
  onDone: (answer) => {
    return 'I am no one :-)'
  }
}
```
#### Options
| Name |   Type  | Default |   Description    |
|------|---------|---------|------------------|
| indent | `Number` |   `2`   | How many spaces do you want the prompts to be indented |

Returns: `multiPrompt`

### `multiPrompt.begin()`
> Starts the prompt

```javascript
import MultiPrompt from '@joegesualdo/multi-prompt-node'

const questions = [
  {
    prompt: `What's your name?`,
  },
  {
    prompt: `How old are you?`,
  },
]

new MultiPrompt(questions, {
  indent: 4,
})
.on('done', result=> {
  console.log(result)
})
.begin()
```

### `multiPrompt.on(type, fn)`
> Sets lifecycle methods

#### Params
| Name |   Type     | Default |   Description      | Possible values |
|------|------------|---------|--------------------|-----------------|
| type | `String`   |  `N/A`  | The lifecycle name | `done` |
| fn   | `Function` |  `N/A`  | Function to run    | `N/A`|

```javascript
import MultiPrompt from '@joegesualdo/multi-prompt-node'

const questions = [
  {
    prompt: `What's your name?`,
  },
  {
    prompt: `How old are you?`,
  },
]

new MultiPrompt(questions)
.on('done', result=> {
  console.log(result)
})
.begin()
```
## Build
```
$ npm run build
```

## Related
- [prompt-node](https://github.com/joegesualdo/prompt-node) - Command line prompt

## License
MIT © [Joe Gesualdo]()
npm package: @joegesualdo/multi-terminal-prompt-node
Description: Multiple command line prompts.
Latest version: 0.0.1

## @joegesualdo/multi-terminal-prompt-node [![Build Status](https://travis-ci.org/joegesualdo/multi-terminal-prompt-node.svg?branch=master)](https://travis-ci.org/joegesualdo/multi-terminal-prompt-node)
> Multiple command line prompts.

## Install
```
$ npm install --save @joegesualdo/multi-terminal-prompt-node
```

![demo](https://github.com/joegesualdo/multi-terminal-prompt-node/raw/master/demo.gif)

## Usage
```javascript
var multi = require("@joegesualdo/multiTerminalPromptNode").default

// insert code example here
```

## Test
```
$ npm test
```
## API
### `methodName(arg1, arg2)`
> What does this method do?

| Name | Type | Description |
|------|------|-------------|
| arg1 | `Array` | Test description|
| arg2 | `String` | Test description|

Returns: `Array`, of things

```javascript
var @joegesualdo/multiTerminalPromptNode = require("@joegesualdo/multi-terminal-prompt-node").default

// insert method example here
```
## Build
```
$ npm run build
```

## Related
- [example-package]() - Add description of the example package here.

## License
MIT © [undefined]()