https://github.com/pylp/pylpconcat
Concatenation plugin for Pylp
https://github.com/pylp/pylpconcat
concat pylp python-3
Last synced: 5 months ago
JSON representation
Concatenation plugin for Pylp
- Host: GitHub
- URL: https://github.com/pylp/pylpconcat
- Owner: pylp
- License: mit
- Created: 2017-08-26T13:50:49.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-29T09:32:44.000Z (almost 9 years ago)
- Last Synced: 2025-08-25T04:04:52.259Z (10 months ago)
- Topics: concat, pylp, python-3
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Information
[](https://pypi.org/project/pylpconcat)
[]()
[]()
**pylpconcat** is a plugin for [Pylp](https://github.com/pylp/pylp) that can concatenate
file contents.
## Installation
Install **pylpconcat** with `pip`:
pip install pylpconcat
If you don't have Python `Scripts` folder in your PATH, you can run also:
python -m pip install pylpconcat
## Usage
The usual use of **pylpconcat** is as follows:
```python
import pylp
from pylpconcat import concat
pylp.task('scripts', lambda:
pylp.src('lib/*.js')
.pipe(concat('all.js'))
.pipe(pylp.dest('dist'))
)
```
Moreover, you can specify the separator to add between files (`\n` by default):
```python
import pylp
from pylpconcat import concat
pylp.task('scripts', lambda:
pylp.src('lib/*.js')
.pipe(concat('all.js', sep=';'))
.pipe(pylp.dest('dist'))
)
```