Skip to content

idiocc/example-package

Repository files navigation

@artdeco/example-package

npm version

@artdeco/example-package is An example package created with MNP.

yarn add @artdeco/example-package

Table Of Contents

API

The package is available by importing its default function:

import examplePackage from '@artdeco/example-package'

async examplePackage(
  config: !Config,
): string

An example package created with MNP.

Config: Options for the program.

Name Type Description Default
shouldRun boolean A boolean option. true
text string A text to return. -
import examplePackage from '@artdeco/example-package'

(async () => {
  const res = await examplePackage({
    text: 'example',
  })
  console.log(res)
})()
@artdeco/example-package called with example
example

CLI

The package can also be used from the CLI.

Argument Short Description
input The path to the input file.
--output -o Where to save the output. By default prints to stdout. Default -.
--init -i Initialise in the current folder.
--help -h Print the help information and exit.
--version -v Show the version's number and exit.
An example package created with MNP.

  example-package input [-o output] [-ihv]

	input        	The path to the input file.
	--output, -o 	Where to save the output. By default prints to stdout.
	             	Default: -.
	--init, -i   	Initialise in the current folder.
	--help, -h   	Print the help information and exit.
	--version, -v	Show the version's number and exit.

  Example:

    example-package example.txt -o out.txt

Copyright & License

GNU Affero General Public License v3.0

idiocc © Art Deco™ 2019

About

An example package created with MNP.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published