neoluddite
Version:
Become part of Open Source anarchical movement and get payed for the value your packages create.
141 lines (110 loc) • 3.56 kB
Markdown
# neoluddite
[](https://www.npmjs.com/package/neoluddite)
`neoluddite` is Become part of Open Source anarchical movement and get payed for the value your packages create.
```sh
yarn add neoluddite
```
## Table Of Contents
- [Table Of Contents](#table-of-contents)
- [API](#api)
- [`async neoluddite(config: !Config): string`](#async-neoludditeconfig-config-string)
* [`Config`](#type-config)
- [CLI](#cli)
- [Copyright & License](#copyright--license)
<p align="center"><a href="#table-of-contents">
<img src="/.documentary/section-breaks/0.svg?sanitize=true">
</a></p>
## API
The package is available by importing its default function:
```js
import neoluddite from 'neoluddite'
```
<p align="center"><a href="#table-of-contents">
<img src="/.documentary/section-breaks/1.svg?sanitize=true">
</a></p>
## <code>async <ins>neoluddite</ins>(</code><sub><br/> `config: !Config,`<br/></sub><code>): <i>string</i></code>
Become part of Open Source anarchical movement and get payed for the value your packages create.
- <kbd><strong>config*</strong></kbd> <em><code><a href="#type-config" title="Options for the program.">!Config</a></code></em>: The config.
__<a name="type-config">`Config`</a>__: Options for the program.
| Name | Type | Description | Default |
| --------- | ---------------- | ----------------- | ------- |
| shouldRun | <em>boolean</em> | A boolean option. | `true` |
| text | <em>string</em> | A text to return. | - |
```js
import neoluddite from 'neoluddite'
(async () => {
const res = await neoluddite({
text: 'example',
})
console.log(res)
})()
```
```
neoluddite called with example
example
```
<p align="center"><a href="#table-of-contents">
<img src="/.documentary/section-breaks/2.svg?sanitize=true">
</a></p>
## CLI
The package can also be used from the CLI.
<table>
<thead>
<tr>
<th>Argument</th>
<th>Short</th>
<th>Description</th>
</tr>
</thead>
<tr>
<td>input</td>
<td></td>
<td>The path to the input file.</td>
</tr>
<tr>
<td>--output</td>
<td>-o</td>
<td>Where to save the output. By default prints to stdout. Default <code>-</code>.</td>
</tr>
<tr>
<td>--init</td>
<td>-i</td>
<td>Initialise in the current folder.</td>
</tr>
<tr>
<td>--help</td>
<td>-h</td>
<td>Print the help information and exit.</td>
</tr>
<tr>
<td>--version</td>
<td>-v</td>
<td>Show the version's number and exit.</td>
</tr>
</table>
```
Become part of Open Source anarchical movement and get payed for the value your packages create.
neoluddite 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:
neoluddite example.txt -o out.txt
```
<p align="center"><a href="#table-of-contents">
<img src="/.documentary/section-breaks/3.svg?sanitize=true">
</a></p>
## Copyright & License
GNU Affero General Public License v3.0
<table>
<tr>
<td><img src="https://avatars3.githubusercontent.com/u/38815725?v=4&s=100" alt="artdecocode"></td>
<td>© <a href="https://www.artd.eco">Art Deco</a> 2019</td>
</tr>
</table>
<p align="center"><a href="#table-of-contents">
<img src="/.documentary/section-breaks/-1.svg?sanitize=true">
</a></p>