1.0.6 • Published 4 years ago

malta-rename v1.0.6

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

npm version npm downloads npm downloads


This plugin can be used on all files and simply renames the file to the to parameter passed (relative to outfolder)

Options :
- to new name for the file

Sample usage:

malta app/media/daisy.svg public/media -plugins=malta-svg2png...malta-rename[to:\"rose.png\"]  

or in the .json file :

"app/media/daisy.svg" : "public/media -plugins=malta-svg2png...malta-rename[to:\"rose.png\"]"

or in a script :

var Malta = require('malta');
Malta.get().check([
    'app/media/daisy.svg',
    'public/media',
    '-plugins=malta-svg2png...malta-rename[to:"rose.png"]',
    '-options=showPath:false,watchInterval:500,verbose:0'
    ]).start(function (o) {
        var s = this;
        console.log('name : ' + o.name)
        console.log("content : \n" + o.content);
        'plugin' in o && console.log("plugin : " + o.plugin);
        console.log('=========');
    });
1.0.6

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago