An open API service indexing awesome lists of open source software.

https://github.com/artdecocode/windows-test

t
https://github.com/artdecocode/windows-test

Last synced: 11 months ago
JSON representation

t

Awesome Lists containing this project

README

          

# my-new-package

[![npm version](https://badge.fury.io/js/my-new-package.svg)](https://www.npmjs.com/package/my-new-package)

`my-new-package` is {{ description }}

```sh
yarn add my-new-package
```

## Table Of Contents

- [Table Of Contents](#table-of-contents)
- [API](#api)
- [`async myNewPackage(config: !Config): string`](#async-mynewpackageconfig-config-string)
* [`Config`](#type-config)
- [CLI](#cli)
- [Copyright & License](#copyright--license)



## API

The package is available by importing its default function:

```js
import myNewPackage from 'my-new-package'
```



## async myNewPackage(
  `config: !Config,`
): string
{{ description }}

- config* !Config: The config.

__`Config`__: Options for the program.

| Name | Type | Description | Default |
| --------- | ---------------- | ----------------- | ------- |
| shouldRun | boolean | A boolean option. | `true` |
| text | string | A text to return. | - |

```js
import myNewPackage from 'my-new-package'

(async () => {
const res = await myNewPackage({
text: 'example',
})
console.log(res)
})()
```
```
my-new-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.

```
{{ 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