🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

stc-copy-file

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stc-copy-file

Stc plugin for copying file

1.0.6
latest
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created

stc-copy-file

Stc plugin for copying file

Install

npm install stc-copy-file

How to use

var stccopyfile = require('stc-copy-file');
stccopyfile: {
    plugin: stccopyfile,
    include: /resource\/abd\/.*\.js$/, options: {
      dest: function(source){
        var target = '/copy/'+source;
        return target;
      }
    }
  }

##dest 可以为字符串或者function:

  • 1.当dest为字符串时,新路径targetPath为path.join(this.options.dest, this.file.path);
  • 2.当dest为function时,新路径targetPath为function的返回值
  • 注:targetPath会经过stc-plugin getResolvePath方法处理

FAQs

Package last updated on 23 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts