zonvert

0.0.4 • Public • Published

README

Author: Lin Dong

Date: April 06, 2015

Instruction

  1. npm install zonvert to install zonvert package

  2. zonvert -c ~/.jshintrc -d ./test/src -o ./test/build

This will convert AMD to CMD javascript file.

Example

Convert input

define(["underscore", "backbone"],
    function(_, Backbone) {
        var exports = Backbone.Controller.extend({
          // your code
        });
        return exports;
    }
);

to output

var _ = require("underscore");
var Backbone = require("Backbone");
var exports = Backbone.Collection.extend({
  // your code
});
module.exports = exports;
 

You can customize ~/.jshintrc to fit your needs

Readme

Keywords

Package Sidebar

Install

npm i zonvert

Weekly Downloads

3

Version

0.0.4

License

MIT

Last publish

Collaborators

  • ldong