Skip to content

Repository files navigation

my-new-package

npm version

my-new-package is {{ description }}

yarn add my-new-package

Table Of Contents

API

The package is available by importing its default function:

importmyNewPackagefrom'my-new-package'

async myNewPackage(
config: !Config,
): string

{{ description }}

Config: Options for the program.

NameTypeDescriptionDefault
shouldRunbooleanA boolean option.true
textstringA text to return.-
importmyNewPackagefrom'my-new-package'(async()=>{constres=awaitmyNewPackage({text: 'example',})console.log(res)})()
my-new-package called with example
example

CLI

The package can also be used from the CLI.

ArgumentShortDescription
inputThe path to the input file.
--output-oWhere to save the output. By default prints to stdout. Default -.
--init-iInitialise in the current folder.
--help-hPrint the help information and exit.
--version-vShow the version's number and exit.
{{ description }}
mnp 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:
mnp example.txt -o out.txt

Copyright & License

{{ license_name }}

{{ org }}© {{ trademark }} 2020

About

A Node.JS package template.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages