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

https://github.com/molnarmark/pipey

The tiny (460b) way of using pipes in MTA.
https://github.com/molnarmark/pipey

lua mta mtasa multitheftauto pipeline pipeline-framework pipelines

Last synced: about 2 months ago
JSON representation

The tiny (460b) way of using pipes in MTA.

Awesome Lists containing this project

README

        








The tiny (439 bytes) way of using pipes in MTA.

## Getting Started

### As a Resource
Pipey comes as a resource with an exported function that is `getPipey`, which makes a `Pipey` instance.

### Or
You can drop `pipey.lua` into your project as it is *439 bytes* in total.

## Usage
First, create a `Pipey` instance by using the following:
```lua
local Pipey = loadstring(getPipey())()
```

Next, use it!
```lua
Pipey
:pipe(firstFunction)
:pipe(secondFunction)
:pipe(thirdFunction)

Pipey:process()
```

You can also take a look at the [example.lua](https://github.com/molnarmark/Pipey/blob/master/example.lua) file.

## License
`Pipey` comes licensed under the [MIT License](https://github.com/molnarmark/Pipey/blob/master/LICENSE).

## Fancy buying me a beer?
If this project was helpful to you, you can buy me a beer if you feel like doing so. 🙂

[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YM7E34E2LT4D8)