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

https://github.com/artdecocode/neoluddite

Become part of Open Source anarchical movement and get payed for the value your packages create.
https://github.com/artdecocode/neoluddite

anarchy community funding neoluddite open-source peer-to-peer

Last synced: 7 months ago
JSON representation

Become part of Open Source anarchical movement and get payed for the value your packages create.

Awesome Lists containing this project

README

          

# neoluddite

[![npm version](https://badge.fury.io/js/neoluddite.svg)](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)



## API

The package is available by importing its default function:

```js
import neoluddite from 'neoluddite'
```



## async neoluddite(
  `config: !Config,`
): string
Become part of Open Source anarchical movement and get payed for the value your packages create.

- 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 neoluddite from 'neoluddite'

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

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



## Copyright & License

GNU Affero General Public License v3.0


artdecocode
© Art Deco 2019