semvec/pypi-packages huggingface dataset:
pylpconcat 0.1.1
Concatenation plugin for Pylp
License: MIT
Requires Python: >=3.5
Keywords: pylp gulp concat

==========
PylpConcat
==========


Information
===========

**pylpconcat** is a plugin for `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:

.. code:: 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):

.. code:: python

    import pylp
    from pylpconcat import concat

    pylp.task('scripts', lambda:
        pylp.src('lib/*.js')
          .pipe(concat('all.js', sep=';'))
          .pipe(pylp.dest('dist'))
    )


.. _Pylp: https://github.com/pylp/pylp