open-index/open-npm huggingface dataset:
npm package: @mitsuru793/commander-document-generator
Description: This generates document for tj/commander.js. It helps you to write sections of command guide on README.md.
Author: mitsuru793
Latest version: 0.1.2

# Commander Document Generator

This generates document for [tj/commander\.js](https://github.com/tj/commander.js/). It helps you to write sections of command guide on README.md.

# Installation

```
$ yarn add commander-document-generator
```

# Write template

You must write a template for a command with [janl/mustache\.js](https://github.com/janl/mustache.js/).

You can use a variable 'command' in template. The following is property list of 'command'.

**Command**
* name: string
* args: Argument[]
* options: Option[]
* description: string

**Argument**
* name: string
* display: boolean
* required: boolean
* variadic: boolean

**Option**
* flags: string
* required: boolean
* optional: boolean
* bool: boolean
* short?: string
* long: string
* description: string

## Example

```typescript
import {Command as Commander} from "commander"
import CommandDocument from "commander-document-genertor"

const program = new Commander()

program
  .command('hello <message>')
  .description('just hello')
  .option("-t, --to <name>", "target user")
  .option("-s, --silent", "not say")

const template = `
{{#commands}}
### {{name}} {{{args.0.display}}}

{{description}}

{{#options}}
#### {{{flags}}}

{{description}}
{{/options}}
{{/commands}}
`

const doc = CommandDocument.parse(program)
console.log(doc.render(template))
```

output
```
### hello <message>

just hello

#### -t, --to <name>

target user

#### -s, --silent

not say
```
npm package: @mitsuru793/document-generator-package-bundle
Description: Document generator for package bundle
Author: mitsuru793
Latest version: 1.1.3

# Document Generator Package Bundle

This generates document for my bundle of npm packages.
I don't have to write a `README.md` for the bundle.

# Installation

```
$ yarn add -D @mitsuru793/document-generator-package-bundle
```

# Write template

## Command

```
document-generator-package-bundle render:readme 'purpose for bundle'
```

## Script File

```javascript
import {Template} from '@mitsuru793/document-generator-package-bundle'

async function main(): Promise<void> {
  // Pass a purpose of bundle as 1st argument.
  // "to play music" is injected to readme.
  
  // Fetch npm package of dependencies internal.
  // So you have to use await.
  const text = await Template.readme('to play music')
  console.log(text)
}

main()
```
npm package: @mitsuru793/package-bundle-typescirpt-lint
Description: Package bundle for TypeScript lint
Author: mitsuru793
Latest version: 1.0.0

# Package Bundle TypeScript Lint

This is a bundle of npm packages to use lint for TypeScript.

You don't have look for npm packages to do it.

# Installation

Just install only one package!

```
$ yarn add -D @mitsuru793/package-bundle-typescript-lint
```

# Package List

You can use the following the packages without `yarn add <the package>`.

### @typescript-eslint/eslint-plugin: ^1.9.0

[Npm](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin) /
[Github](https://github.com/typescript-eslint/typescript-eslint) /
[Homepage](https://github.com/typescript-eslint/typescript-eslint#readme)

TypeScript plugin for ESLint

### eslint: ^5.16.0

[Npm](https://www.npmjs.com/package/eslint) /
[Github](https://github.com/eslint/eslint) /
[Homepage](https://eslint.org)

An AST-based pattern checker for JavaScript.

### eslint-config-prettier: ^4.3.0

[Npm](https://www.npmjs.com/package/eslint-config-prettier) /
[Github](https://github.com/prettier/eslint-config-prettier) /
[Homepage](https://github.com/prettier/eslint-config-prettier#readme)

Turns off all rules that are unnecessary or might conflict with Prettier.

### eslint-plugin-prettier: ^3.1.0

[Npm](https://www.npmjs.com/package/eslint-plugin-prettier) /
[Github](https://github.com/prettier/eslint-plugin-prettier) /
[Homepage](https://github.com/prettier/eslint-plugin-prettier#readme)

Runs prettier as an eslint rule

### prettier: ^1.17.1

[Npm](https://www.npmjs.com/package/prettier) /
[Github](https://github.com/prettier/prettier) /
[Homepage](https://prettier.io)

Prettier is an opinionated code formatter

### typescript: 3.4

[Npm](https://www.npmjs.com/package/typescript) /
[Github](https://github.com/Microsoft/TypeScript) /
[Homepage](https://www.typescriptlang.org/)

TypeScript is a language for application scale JavaScript development
npm package: @mitsuru793/package-bundle-typescirpt-webpack
Description: Package bundle for building TypeScript with webpack
Author: mitsuru793
Latest version: 1.0.0

# Package Bundle Typescript Build

This is a bundle of npm packages to build TypeScript with webpack.

You don't have look for npm packages to do it.

# Installation

Just install only one package!

```
$ yarn add @mitsuru793/package-bundle-typescript-webpack
```

# Package List

You can use the following the packages without `yarn add <the package>`.

### ts-loader: ^6.0.2

[Npm](https://www.npmjs.com/package/ts-loader) /
[Github](https://github.com/TypeStrong/ts-loader) /
[Homepage](https://github.com/TypeStrong/ts-loader)

TypeScript loader for webpack

### typescript: ^3.4.5

[Npm](https://www.npmjs.com/package/typescript) /
[Github](https://github.com/Microsoft/TypeScript) /
[Homepage](https://www.typescriptlang.org/)

TypeScript is a language for application scale JavaScript development

### webpack: ^4.32.2

[Npm](https://www.npmjs.com/package/webpack) /
[Github](https://github.com/webpack/webpack) /
[Homepage](https://github.com/webpack/webpack)

Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.

### webpack-cli: ^3.3.2

[Npm](https://www.npmjs.com/package/webpack-cli) /
[Github](https://github.com/webpack/webpack-cli) /
[Homepage](https://github.com/webpack/webpack-cli#readme)

CLI for webpack & friends
npm package: @mitsuru793/package-bundle-typescript-lint
Description: Package bundle for TypeScript lint
Author: mitsuru793
Latest version: 1.0.1

# Package Bundle TypeScript Lint

This is a bundle of npm packages to use lint for TypeScript.

You don't have look for npm packages to do it.

# Installation

Just install only one package!

```
$ yarn add -D @mitsuru793/package-bundle-typescript-lint
```

# Package List

You can use the following the packages without `yarn add <the package>`.

### @typescript-eslint/eslint-plugin: ^1.9.0

[Npm](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin) /
[Github](https://github.com/typescript-eslint/typescript-eslint) /
[Homepage](https://github.com/typescript-eslint/typescript-eslint#readme)

TypeScript plugin for ESLint

### eslint: ^5.16.0

[Npm](https://www.npmjs.com/package/eslint) /
[Github](https://github.com/eslint/eslint) /
[Homepage](https://eslint.org)

An AST-based pattern checker for JavaScript.

### eslint-config-prettier: ^4.3.0

[Npm](https://www.npmjs.com/package/eslint-config-prettier) /
[Github](https://github.com/prettier/eslint-config-prettier) /
[Homepage](https://github.com/prettier/eslint-config-prettier#readme)

Turns off all rules that are unnecessary or might conflict with Prettier.

### eslint-plugin-prettier: ^3.1.0

[Npm](https://www.npmjs.com/package/eslint-plugin-prettier) /
[Github](https://github.com/prettier/eslint-plugin-prettier) /
[Homepage](https://github.com/prettier/eslint-plugin-prettier#readme)

Runs prettier as an eslint rule

### prettier: ^1.17.1

[Npm](https://www.npmjs.com/package/prettier) /
[Github](https://github.com/prettier/prettier) /
[Homepage](https://prettier.io)

Prettier is an opinionated code formatter

### typescript: 3.4

[Npm](https://www.npmjs.com/package/typescript) /
[Github](https://github.com/Microsoft/TypeScript) /
[Homepage](https://www.typescriptlang.org/)

TypeScript is a language for application scale JavaScript development
npm package: @mitsuru793/package-bundle-typescript-webpack
Description: Package bundle for building TypeScript with webpack
Author: mitsuru793
Latest version: 1.0.1

# Package Bundle Typescript Build

This is a bundle of npm packages to build TypeScript with webpack.

You don't have look for npm packages to do it.

# Installation

Just install only one package!

```
$ yarn add @mitsuru793/package-bundle-typescript-webpack
```

# Package List

You can use the following the packages without `yarn add <the package>`.

### ts-loader: ^6.0.2

[Npm](https://www.npmjs.com/package/ts-loader) /
[Github](https://github.com/TypeStrong/ts-loader) /
[Homepage](https://github.com/TypeStrong/ts-loader)

TypeScript loader for webpack

### typescript: ^3.4.5

[Npm](https://www.npmjs.com/package/typescript) /
[Github](https://github.com/Microsoft/TypeScript) /
[Homepage](https://www.typescriptlang.org/)

TypeScript is a language for application scale JavaScript development

### webpack: ^4.32.2

[Npm](https://www.npmjs.com/package/webpack) /
[Github](https://github.com/webpack/webpack) /
[Homepage](https://github.com/webpack/webpack)

Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.

### webpack-cli: ^3.3.2

[Npm](https://www.npmjs.com/package/webpack-cli) /
[Github](https://github.com/webpack/webpack-cli) /
[Homepage](https://github.com/webpack/webpack-cli#readme)

CLI for webpack & friends
npm package: @mitsuru793/snippet-executor
Description: Code block manager. This is useful in a single file as sandbox.
Author: mitsuru793
Latest version: 0.0.1

# Snippet-Executor

This is a closure manager. It's useful when you write some code brocks in one file. You don't have to split the file.

```javascript
import Codes from 'codes'

const lessons = new Codes()
lessons.push('join array', () => {
  const nums = [1]
  nums.join([2])
  console.log(nums)
})

lessons.push('join string', () => {
  const nums = '1'
  nums += 2
  console.log(nums)
})

lessons.runLast()
// execute 'join string'
// => 12
```

## Methods

```typescript
push(code: Function): this
push(title: string, code: Function): this

runAt(index: number | string, args: any[] = []): any
runFirst(args: any[] = []): any
runLast(args: any[] = []): any {
runMatch(pattern: RegExp, args: any[] = []): any
```