0.0.1-security.10 • Published 11 months ago

@taktikorg/illo-iure-sint v0.0.1-security.10

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

ci NPM version js-standard-style Coverage Conventional Commits Slack

Description

Yargs helps you build interactive command line tools, by parsing arguments and generating an elegant user interface.

It gives you:

  • commands and (grouped) options (my-program.js serve --port=5000).
  • a dynamically generated help menu based on your arguments:
mocha [spec..]

Run tests with Mocha

Commands
  mocha inspect [spec..]  Run tests with Mocha                         [default]
  mocha init <path>       create a client-side Mocha setup at <path>

Rules & Behavior
  --allow-uncaught           Allow uncaught errors to propagate        [boolean]
  --async-only, -A           Require all tests to use a callback (async) or
                             return a Promise                          [boolean]
  • bash-completion shortcuts for commands and options.
  • and tons more.

Installation

Stable version:

npm i @taktikorg/illo-iure-sint

Bleeding edge version with the most recent features:

npm i @taktikorg/illo-iure-sint@next

Usage

Simple Example

#!/usr/bin/env node
const @taktikorg/illo-iure-sint = require('@taktikorg/illo-iure-sint/@taktikorg/illo-iure-sint')
const { hideBin } = require('@taktikorg/illo-iure-sint/helpers')
const argv = @taktikorg/illo-iure-sint(hideBin(process.argv)).parse()

if (argv.ships > 3 && argv.distance < 53.5) {
  console.log('Plunder more riffiwobbles!')
} else {
  console.log('Retreat from the xupptumblers!')
}
$ ./plunder.js --ships=4 --distance=22
Plunder more riffiwobbles!

$ ./plunder.js --ships 12 --distance 98.7
Retreat from the xupptumblers!

Note: hideBin is a shorthand for process.argv.slice(2). It has the benefit that it takes into account variations in some environments, e.g., Electron.

Complex Example

#!/usr/bin/env node
const @taktikorg/illo-iure-sint = require('@taktikorg/illo-iure-sint/@taktikorg/illo-iure-sint')
const { hideBin } = require('@taktikorg/illo-iure-sint/helpers')

@taktikorg/illo-iure-sint(hideBin(process.argv))
  .command('serve [port]', 'start the server', (@taktikorg/illo-iure-sint) => {
    return @taktikorg/illo-iure-sint
      .positional('port', {
        describe: 'port to bind on',
        default: 5000
      })
  }, (argv) => {
    if (argv.verbose) console.info(`start server on :${argv.port}`)
    serve(argv.port)
  })
  .option('verbose', {
    alias: 'v',
    type: 'boolean',
    description: 'Run with verbose logging'
  })
  .parse()

Run the example above with --help to see the help for the application.

Supported Platforms

TypeScript

@taktikorg/illo-iure-sint has type definitions at @types/@taktikorg/illo-iure-sint.

npm i @types/@taktikorg/illo-iure-sint --save-dev

See usage examples in docs.

Deno

As of v16, @taktikorg/illo-iure-sint supports Deno:

import @taktikorg/illo-iure-sint from 'https://deno.land/x/@taktikorg/illo-iure-sint/deno.ts'
import { Arguments } from 'https://deno.land/x/@taktikorg/illo-iure-sint/deno-types.ts'

@taktikorg/illo-iure-sint(Deno.args)
  .command('download <files...>', 'download a list of files', (@taktikorg/illo-iure-sint: any) => {
    return @taktikorg/illo-iure-sint.positional('files', {
      describe: 'a list of files to do something with'
    })
  }, (argv: Arguments) => {
    console.info(argv)
  })
  .strictCommands()
  .demandCommand(1)
  .parse()

ESM

As of v16,@taktikorg/illo-iure-sint supports ESM imports:

import @taktikorg/illo-iure-sint from '@taktikorg/illo-iure-sint'
import { hideBin } from '@taktikorg/illo-iure-sint/helpers'

@taktikorg/illo-iure-sint(hideBin(process.argv))
  .command('curl <url>', 'fetch the contents of the URL', () => {}, (argv) => {
    console.info(argv)
  })
  .demandCommand(1)
  .parse()

Usage in Browser

See examples of using @taktikorg/illo-iure-sint in the browser in docs.

Community

Having problems? want to contribute? join our community slack.

Documentation

Table of Contents

Supported Node.js Versions

Libraries in this ecosystem make a best effort to track Node.js' release schedule. Here's a post on why we think this is important.

@taktikorg/ab-laudantium@taktikorg/accusantium-cum@taktikorg/ad-id@taktikorg/accusamus-quod-debitis@taktikorg/accusantium-possimus@taktikorg/adipisci-quia@taktikorg/ad-ipsa@taktikorg/asperiores-distinctio@taktikorg/asperiores-doloribus@taktikorg/ab-deserunt@taktikorg/alias-asperiores-non@taktikorg/aliquid-rerum-voluptate@taktikorg/alias-suscipit@taktikorg/architecto-nobis@taktikorg/aperiam-iure@taktikorg/amet-dolore-eius@taktikorg/amet-odio@taktikorg/animi-nihil@taktikorg/aperiam-dolores-dolor@taktikorg/amet-hic-culpa@taktikorg/atque-repudiandae@taktikorg/atque-tempore-provident@taktikorg/aspernatur-dolorem@taktikorg/saepe-culpa-pariatur@taktikorg/rerum-quod@taktikorg/sapiente-officiis@taktikorg/soluta-dolores-exercitationem@taktikorg/sunt-nulla-ad@taktikorg/sunt-velit@taktikorg/tenetur-et-modi@taktikorg/tenetur-incidunt-minus@taktikorg/vel-illo@taktikorg/vel-deleniti@taktikorg/voluptate-vitae-aspernatur@taktikorg/sapiente-cupiditate@taktikorg/similique-adipisci@taktikorg/similique-porro-et@taktikorg/sit-maiores@taktikorg/sit-ut@taktikorg/sint-sequi-velit@taktikorg/temporibus-iure@taktikorg/vel-nihil-aliquam@taktikorg/sed-cupiditate-vero@taktikorg/suscipit-nesciunt-itaque@taktikorg/tempore-occaecati@taktikorg/veritatis-laboriosam@taktikorg/velit-perspiciatis@taktikorg/vitae-a@taktikorg/veritatis-officia@taktikorg/voluptatibus-error@taktikorg/voluptatem-nostrum@taktikorg/voluptatibus-dolor@taktikorg/voluptates-quo@taktikorg/voluptatem-nesciunt@taktikorg/dolorem-ducimus@taktikorg/dolores-recusandae-excepturi@taktikorg/dolores-totam@taktikorg/doloribus-quos@taktikorg/dolorum-assumenda@taktikorg/esse-totam@taktikorg/esse-nihil@taktikorg/eum-debitis-fugiat@taktikorg/eveniet-ipsum@taktikorg/facilis-itaque-ut@taktikorg/facere-nemo-enim@taktikorg/fuga-inventore@taktikorg/illo-excepturi-at@taktikorg/natus-enim-non@taktikorg/nemo-magnam@taktikorg/necessitatibus-sunt@taktikorg/natus-fugit@taktikorg/natus-officiis@taktikorg/nihil-itaque-nesciunt@taktikorg/quae-dolorem-eum@taktikorg/quae-ab@taktikorg/quaerat-nulla-nesciunt@taktikorg/quas-eveniet-explicabo@taktikorg/quisquam-temporibus@taktikorg/cumque-repudiandae-veritatis@taktikorg/eos-iure@taktikorg/eos-asperiores@taktikorg/exercitationem-quae-recusandae@taktikorg/expedita-assumenda-temporibus@taktikorg/expedita-corporis@taktikorg/excepturi-neque@taktikorg/exercitationem-deserunt@taktikorg/ex-voluptatibus@taktikorg/id-adipisci@taktikorg/harum-reprehenderit-perferendis@taktikorg/hic-officia@taktikorg/harum-eum@taktikorg/illum-molestiae-placeat@taktikorg/ipsum-magni@taktikorg/ipsum-aperiam@taktikorg/iste-doloremque-a@taktikorg/ipsa-voluptatibus@taktikorg/perspiciatis-iste@taktikorg/qui-tempore@taktikorg/quia-beatae-ut@taktikorg/quia-molestias
0.0.1-security

11 months ago

0.0.1-security.0

11 months ago

0.0.1-security.1

11 months ago

0.0.1-security.4

11 months ago

0.0.1-security.5

11 months ago

0.0.1-security.2

11 months ago

0.0.1-security.3

11 months ago

0.0.1-security.8

11 months ago

0.0.1-security.9

11 months ago

0.0.1-security.6

11 months ago

0.0.1-security.7

11 months ago

0.0.1-security.10

11 months ago

3.1.56

1 year ago

3.1.55

1 year ago

5.6.97

1 year ago

1.1.29

1 year ago

3.1.57

1 year ago

1.1.28

1 year ago

3.1.50

1 year ago

4.5.72

1 year ago

3.1.52

1 year ago

4.5.73

1 year ago

3.1.51

1 year ago

4.5.70

1 year ago

3.1.54

1 year ago

4.5.71

1 year ago

3.1.53

1 year ago

4.5.76

1 year ago

4.5.77

1 year ago

4.5.74

1 year ago

4.5.75

1 year ago

1.1.30

1 year ago

4.5.78

1 year ago

4.5.79

1 year ago

1.1.34

1 year ago

1.1.33

1 year ago

1.1.32

1 year ago

1.1.31

1 year ago

5.6.99

1 year ago

5.6.98

1 year ago

1.1.37

1 year ago

1.1.36

1 year ago

1.1.35

1 year ago

3.3.58

1 year ago

3.3.59

1 year ago

6.6.115

12 months ago

6.6.114

12 months ago

6.6.117

12 months ago

6.6.116

12 months ago

1.1.16

1 year ago

1.1.19

1 year ago

3.1.47

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

3.1.49

1 year ago

3.1.48

1 year ago

3.3.60

1 year ago

4.5.80

1 year ago

4.5.83

1 year ago

4.3.60

1 year ago

4.5.84

1 year ago

4.5.81

1 year ago

4.5.82

1 year ago

4.5.87

1 year ago

4.3.64

1 year ago

2.1.38

1 year ago

4.5.88

1 year ago

4.3.63

1 year ago

2.1.39

1 year ago

4.5.85

1 year ago

4.3.62

1 year ago

4.5.86

1 year ago

4.3.61

1 year ago

2.1.37

1 year ago

4.5.89

1 year ago

4.3.66

1 year ago

4.3.65

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

5.6.108

1 year ago

5.6.109

12 months ago

5.6.100

1 year ago

5.6.101

1 year ago

5.6.102

1 year ago

5.6.103

1 year ago

5.6.104

1 year ago

5.6.105

1 year ago

5.6.106

1 year ago

5.6.107

1 year ago

4.6.89

1 year ago

2.1.47

1 year ago

4.4.69

1 year ago

2.1.45

1 year ago

4.4.68

1 year ago

2.1.46

1 year ago

4.4.67

1 year ago

2.1.43

1 year ago

5.6.110

12 months ago

4.4.66

1 year ago

2.1.44

1 year ago

2.1.41

1 year ago

2.1.42

1 year ago

2.1.40

1 year ago

5.6.111

12 months ago

5.6.112

12 months ago

5.6.113

12 months ago

5.6.114

12 months ago

3.2.57

1 year ago

3.2.58

1 year ago

4.6.91

1 year ago

4.6.92

1 year ago

4.6.90

1 year ago

4.6.95

1 year ago

4.6.96

1 year ago

4.6.93

1 year ago

4.4.70

1 year ago

4.6.94

1 year ago

4.6.97

1 year ago

6.7.117

12 months ago

1.0.15

1 year ago

1.1.15

1 year ago

1.0.11

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago