1.6.0 • Published 2 years ago

distr v1.6.0

Weekly downloads
1
License
ISC
Repository
github
Last release
2 years ago

distr

Smartly change src path to dist path, for use in small build systems.

Installation

$ npm i distr;

Configuration

  {
    source: 'src', // directory fragment to target can be RegExp: /src|source/
    destination: 'dist', // new name to use
    limit:1 // number of replacements to make
  }

Example

const distr = require('distr');

  distr('./src/www/index.html');
  //-> ./dist/www/index.html

  distr('./sources/widgets/upload-component/src/index.js', {source:/sources|src/, limit:2});
  //-> ./dist/widgets/upload-component/dist/index.js
1.6.0

2 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

0.0.0-reserved

8 years ago