https://github.com/artdecocode/windows-test
t
https://github.com/artdecocode/windows-test
Last synced: 11 months ago
JSON representation
t
- Host: GitHub
- URL: https://github.com/artdecocode/windows-test
- Owner: artdecocode
- Created: 2020-02-03T00:31:07.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-03T00:31:09.000Z (almost 6 years ago)
- Last Synced: 2025-01-08T06:32:18.167Z (about 1 year ago)
- Language: JavaScript
- Size: 40 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# my-new-package
[](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 }}
© {{ trademark }} 2020