New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

stc-move-file

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stc-move-file

Stc plugin for moving file

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

stc-move-file

Stc plugin for moving file

Install

npm install stc-move-file

How to use

var stcmovefile = require('stc-move-file');
stc.workflow({
  stcmovefile: {
    plugin: stcmovefile,
    include: /resource\/abc\/.*\.js$/, options: {
      dest: function(source){
        var target = 'test/'+source;
        return target;
      }
    }
  }
});

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

  • 1.当dest为字符串时,新路径为path.join(this.options.dest, this.file.path);
  • 2.当dest为function时,新路径为function的返回值,source 参数为原始路径

FAQs

Package last updated on 17 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc