Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-steel-wrap-amd

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-steel-wrap-amd

steel wrap amd

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

gulp-steel-wrap-amd

用途

对js文件进行amd包裹, 例如a.js代码如下:

module.exports = function() {
    var that = {};
    that.show = function(){};
    return that;
}

执行steelWrapAmd包裹之后a.js结果如下:

steel.d('', [], function(require, exports, module){
    module.exports = function() {
        var that = {};
        that.show = function(){};
        return that;
    }
});

steel.d()的第一个参数指a文件的路径,第二个参数指所依赖的文件的路径

用法

var steelWrapAmd = require('steelWrapAmd');
steelWrapAmd();

示例

var steelWrapAmd = require('steelWrapAmd');
gulp.src(['src/js/**/*.js', '!src/js/lib/**.*.js'])
    .pipe(steelWrapAmd())
    .pipe(gulp.dest('server_front/js/'));

Keywords

FAQs

Package last updated on 20 Aug 2015

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