0.0.4 • Published 10 years ago

zonvert v0.0.4

Weekly downloads
5
License
MIT
Repository
-
Last release
10 years ago

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

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago