ga

gobble-amdclean

Convert AMD code to standard JavaScript with gobble and AMDClean

Showing:

Popularity

Downloads/wk

1

Maintenance

No Maintenance Data Available

Package

Dependencies

1

Size (min+gzip)

50.9KB

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

gobble-amdclean

Convert AMD code to standard JavaScript with gobble and AMDClean.

Installation

First, you need to have gobble installed - see the gobble readme for details. Then,

npm i -D gobble-amdclean

Usage

gobblefile.js

var gobble = require( 'gobble' );
module.exports = gobble( 'requirejs-output' ).map( 'amdclean', amdCleanOptions );

The AMDClean options are as per the documentation (the code property will be overwritten by gobble).

Source code

module.exports = amdclean;

function amdclean ( code, options ) {
  options.code = code;
  return require( 'amdclean' ).clean( options );
}

amdclean.defaults = {
  accept: '.js'
};

License

MIT. Copyright 2014 Rich Harris

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100