{"_id":"umd","_rev":"76513","name":"umd","description":"Universal Module Definition for use in automated build systems","dist-tags":{"latest":"3.0.3"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"time":{"modified":"2021-06-03T10:24:40.000Z","created":"2013-03-26T05:09:36.313Z","3.0.3":"2018-03-15T10:38:22.325Z","3.0.2":"2018-03-12T12:50:31.784Z","3.0.1":"2015-04-25T14:50:15.832Z","3.0.0":"2015-02-04T14:36:50.882Z","2.1.0":"2014-04-02T20:44:32.686Z","2.0.0":"2013-12-29T12:25:45.312Z","1.3.1":"2013-08-25T01:51:28.728Z","1.3.0":"2013-08-01T17:31:28.137Z","1.2.1":"2013-06-07T11:26:24.776Z","1.2.0":"2013-06-07T11:19:06.243Z","1.1.1":"2013-04-15T19:55:25.549Z","1.1.0":"2013-03-31T19:24:56.285Z","1.0.0":"2013-03-26T05:09:36.313Z"},"users":{"willhoag":true,"simplyianm":true,"fdaciuk":true,"mondalaci":true,"yoannmoinet":true},"author":{"name":"ForbesLindesay"},"repository":{"type":"git","url":"git+https://github.com/ForbesLindesay/umd.git"},"versions":{"3.0.3":{"name":"umd","version":"3.0.3","description":"Universal Module Definition for use in automated build systems","bin":{"umd":"./bin/cli.js"},"dependencies":{},"devDependencies":{"brfs":"^1.3.0","linify":"^1.0.1","mocha":"*","uglify-js":"^3.3.15"},"scripts":{"build":"uglifyjs template.js > template.min.js && brfs source.js > index.js","test":"npm run build && mocha -R spec","prepublish":"npm run build && linify transform bin"},"files":["index.js","bin/cli.js"],"repository":{"type":"git","url":"git+https://github.com/ForbesLindesay/umd.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"9aa85b63ef4e6809dc9f0f9993a574919ef20e7a","bugs":{"url":"https://github.com/ForbesLindesay/umd/issues"},"homepage":"https://github.com/ForbesLindesay/umd#readme","_id":"umd@3.0.3","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"dist":{"shasum":"aa9fe653c42b9097678489c01000acb69f0b26cf","size":4181,"noattachment":false,"key":"/umd/-/umd-3.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/umd/download/umd-3.0.3.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/umd_3.0.3_1521110302276_0.2838262381797878"},"_hasShrinkwrap":false,"publish_time":1521110302325,"_cnpm_publish_time":1521110302325},"3.0.2":{"name":"umd","version":"3.0.2","description":"Universal Module Definition for use in automated build systems","bin":{"umd":"./bin/cli.js"},"dependencies":{},"devDependencies":{"brfs":"^1.3.0","linify":"~1.0.1","mocha":"*","uglify-js":"~2.7.5"},"scripts":{"build":"uglifyjs template.js > template.min.js && brfs source.js > index.js","test":"npm run build && mocha -R spec","prepublish":"npm run build && linify transform bin"},"files":["index.js","bin/cli.js"],"repository":{"type":"git","url":"git+https://github.com/ForbesLindesay/umd.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"ec026f366c90bda377589e8e4004fa15acd48658","bugs":{"url":"https://github.com/ForbesLindesay/umd/issues"},"homepage":"https://github.com/ForbesLindesay/umd#readme","_id":"umd@3.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"dist":{"shasum":"95bdbc6d3983050df600431f44e5faeb4b7b3d45","size":4185,"noattachment":false,"key":"/umd/-/umd-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/umd/download/umd-3.0.2.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/umd_3.0.2_1520859030724_0.6705255165874984"},"_hasShrinkwrap":false,"publish_time":1520859031784,"_cnpm_publish_time":1520859031784},"3.0.1":{"name":"umd","version":"3.0.1","description":"Universal Module Definition for use in automated build systems","bin":{"umd":"./bin/cli.js"},"dependencies":{},"devDependencies":{"brfs":"^1.3.0","linify":"~1.0.1","mocha":"*","uglify-js":"~2.4.0"},"scripts":{"build":"uglifyjs template.js > template.min.js && brfs source.js > index.js","test":"npm run build && mocha -R spec","prepublish":"npm run build && linify transform bin"},"files":["index.js","bin/cli.js"],"repository":{"type":"git","url":"https://github.com/ForbesLindesay/umd.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"8fc39397901723d695136ee1fdceefb8e0392f5f","bugs":{"url":"https://github.com/ForbesLindesay/umd/issues"},"homepage":"https://github.com/ForbesLindesay/umd","_id":"umd@3.0.1","_shasum":"8ae556e11011f63c2596708a8837259f01b3d60e","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"zertosh","email":"zertosh@gmail.com"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"dist":{"shasum":"8ae556e11011f63c2596708a8837259f01b3d60e","size":2844,"noattachment":false,"key":"/umd/-/umd-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/umd/download/umd-3.0.1.tgz"},"directories":{},"publish_time":1429973415832,"_cnpm_publish_time":1429973415832,"_hasShrinkwrap":false},"3.0.0":{"name":"umd","version":"3.0.0","description":"Universal Module Definition for use in automated build systems","bin":{"umd":"./bin/cli.js"},"dependencies":{},"devDependencies":{"brfs":"^1.3.0","linify":"~1.0.1","mocha":"*","uglify-js":"~2.4.0"},"scripts":{"build":"uglifyjs template.js > template.min.js && brfs source.js > index.js","test":"npm run build && mocha -R spec","prepublish":"npm run build && linify transform bin"},"files":["index.js","bin/cli.js"],"repository":{"type":"git","url":"https://github.com/ForbesLindesay/umd.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"11c4644d052114132a47add8eca1a71204b1c2ce","bugs":{"url":"https://github.com/ForbesLindesay/umd/issues"},"homepage":"https://github.com/ForbesLindesay/umd","_id":"umd@3.0.0","_shasum":"328de29bf1004abb4d6309d7fff1b84b9f823b83","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.28","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"dist":{"shasum":"328de29bf1004abb4d6309d7fff1b84b9f823b83","size":4028,"noattachment":false,"key":"/umd/-/umd-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/umd/download/umd-3.0.0.tgz"},"directories":{},"publish_time":1423060610882,"_cnpm_publish_time":1423060610882,"_hasShrinkwrap":false},"2.1.0":{"name":"umd","version":"2.1.0","description":"Universal Module Definition for use in automated build systems","bin":{"umd":"./bin/cli.js"},"dependencies":{"rfile":"~1.0.0","ruglify":"~1.0.0","through":"~2.3.4","uglify-js":"~2.4.0"},"devDependencies":{"linify":"~1.0.1","mocha":"*"},"scripts":{"test":"mocha -R spec","prepublish":"linify transform bin"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/umd.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","bugs":{"url":"https://github.com/ForbesLindesay/umd/issues"},"homepage":"https://github.com/ForbesLindesay/umd","_id":"umd@2.1.0","dist":{"shasum":"4a6307b762f17f02d201b5fa154e673396c263cf","size":4342,"noattachment":false,"key":"/umd/-/umd-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/umd/download/umd-2.1.0.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"publish_time":1396471472686,"_cnpm_publish_time":1396471472686,"_hasShrinkwrap":false},"2.0.0":{"name":"umd","version":"2.0.0","description":"Universal Module Definition for use in automated build systems","bin":{"umd":"./bin/cli.js"},"dependencies":{"rfile":"~1.0.0","ruglify":"~1.0.0","through":"~2.3.4","uglify-js":"~2.4.0"},"devDependencies":{"linify":"~1.0.1","mocha":"*"},"scripts":{"test":"mocha -R spec","prepublish":"linify transform bin"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/umd.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","readmeFilename":"README.md","bugs":{"url":"https://github.com/ForbesLindesay/umd/issues"},"homepage":"https://github.com/ForbesLindesay/umd","_id":"umd@2.0.0","dist":{"shasum":"749683b0d514728ae0e1b6195f5774afc0ad4f8f","size":3882,"noattachment":false,"key":"/umd/-/umd-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/umd/download/umd-2.0.0.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"publish_time":1388319945312,"_cnpm_publish_time":1388319945312,"_hasShrinkwrap":false},"1.3.1":{"name":"umd","version":"1.3.1","description":"Universal Module Definition for use in automated build systems","bin":{"umd":"./bin/cli.js"},"dependencies":{"rfile":"~1.0.0","ruglify":"~1.0.0","through":"~2.3.4","uglify-js":"~2.4.0"},"devDependencies":{"linify":"~1.0.1","mocha":"*"},"scripts":{"test":"mocha -R spec","prepublish":"linify transform bin"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/umd.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","readmeFilename":"README.md","bugs":{"url":"https://github.com/ForbesLindesay/umd/issues"},"_id":"umd@1.3.1","dist":{"shasum":"fce557c2dbf731fbc207832ff35f6a5857182589","size":3564,"noattachment":false,"key":"/umd/-/umd-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/umd/download/umd-1.3.1.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"publish_time":1377395488728,"_cnpm_publish_time":1377395488728,"_hasShrinkwrap":false},"1.3.0":{"name":"umd","version":"1.3.0","description":"Universal Module Definition for use in automated build systems","bin":{"umd":"./bin/cli.js"},"dependencies":{"rfile":"~1.0.0","ruglify":"~1.0.0","through":"~2.3.1","uglify-js":"~2.3.6"},"devDependencies":{"linify":"~1.0.1","mocha":"*"},"scripts":{"test":"mocha -R spec","prepublish":"linify transform bin"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/umd.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","readmeFilename":"README.md","_id":"umd@1.3.0","dist":{"shasum":"dd28a6b749351e3a52bff7794433c9268f54d90c","size":3563,"noattachment":false,"key":"/umd/-/umd-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/umd/download/umd-1.3.0.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"publish_time":1375378288137,"_cnpm_publish_time":1375378288137,"_hasShrinkwrap":false},"1.2.1":{"name":"umd","version":"1.2.1","description":"Universal Module Definition for use in automated build systems","bin":{"umd":"./bin/cli.js"},"dependencies":{"rfile":"~1.0.0","ruglify":"~1.0.0","through":"~2.3.1","uglify-js":"~2.2.5"},"devDependencies":{"win-spawn":"~1.1.2"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","prepublish":"cd bin && win-line-endings && cd .."},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/umd.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","readmeFilename":"README.md","_id":"umd@1.2.1","dist":{"shasum":"b988357ec157f7a0c24e2984e9aae7581f214039","size":2554,"noattachment":false,"key":"/umd/-/umd-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/umd/download/umd-1.2.1.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"publish_time":1370604384776,"_cnpm_publish_time":1370604384776,"_hasShrinkwrap":false},"1.2.0":{"name":"umd","version":"1.2.0","description":"Universal Module Definition for use in automated build systems","dependencies":{"rfile":"~1.0.0","ruglify":"~1.0.0","through":"~2.3.1","uglify-js":"~2.2.5"},"devDependencies":{"win-spawn":"~1.1.2"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","prepublish":"cd bin && win-line-endings && cd .."},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/umd.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","readmeFilename":"README.md","_id":"umd@1.2.0","dist":{"shasum":"79cf78158e0f74d601761c25f92f0f46ef5fe49a","size":2545,"noattachment":false,"key":"/umd/-/umd-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/umd/download/umd-1.2.0.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"publish_time":1370603946243,"_cnpm_publish_time":1370603946243,"_hasShrinkwrap":false},"1.1.1":{"name":"umd","version":"1.1.1","description":"Universal Module Definition for use in automated build systems","main":"index.js","directories":{"example":"examples"},"dependencies":{"rfile":"~1.0.0","ruglify":"~1.0.0","through":"~2.3.1","uglify-js":"~2.2.5"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/umd.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","readmeFilename":"README.md","gitHead":"7f34f679e59a5051e6d4fe7e6be9657a440bbc86","_id":"umd@1.1.1","dist":{"shasum":"481b64655b1b3db0c1f3910225c3804fc6d7ec58","size":2108,"noattachment":false,"key":"/umd/-/umd-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/umd/download/umd-1.1.1.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"publish_time":1366055725549,"_cnpm_publish_time":1366055725549,"_hasShrinkwrap":false},"1.1.0":{"name":"umd","version":"1.1.0","description":"Universal Module Definition for use in automated build systems","main":"index.js","directories":{"example":"examples"},"dependencies":{"rfile":"~1.0.0","ruglify":"~1.0.0","through":"~2.2.7","uglify-js":"~2.2.5"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/umd.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","readmeFilename":"README.md","gitHead":"7f34f679e59a5051e6d4fe7e6be9657a440bbc86","_id":"umd@1.1.0","dist":{"shasum":"c2a34e0c61f82f7e60a2234fbb6a7b889d11dbb5","size":2081,"noattachment":false,"key":"/umd/-/umd-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/umd/download/umd-1.1.0.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"publish_time":1364757896285,"_cnpm_publish_time":1364757896285,"_hasShrinkwrap":false},"1.0.0":{"name":"umd","version":"1.0.0","description":"Universal Module Definition for use in automated build systems","main":"index.js","directories":{"example":"examples"},"dependencies":{"rfile":"~1.0.0","ruglify":"~1.0.0","through":"~2.2.7","uglify-js":"~2.2.5"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/umd.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","readmeFilename":"README.md","gitHead":"7f34f679e59a5051e6d4fe7e6be9657a440bbc86","_id":"umd@1.0.0","dist":{"shasum":"27af9f91760a12b22616dddf089fefee20c7a3af","size":2088,"noattachment":false,"key":"/umd/-/umd-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/umd/download/umd-1.0.0.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"publish_time":1364274576313,"_cnpm_publish_time":1364274576313,"_hasShrinkwrap":false}},"readme":"# umd\n<img src=\"http://i.imgur.com/ypw29XY.png\" align=\"right\"/>\n\nUniversal Module Definition for use in automated build systems\n\n - simple synchronous wrapping of a string\n - `return` style module support\n - CommonJS support\n - prevents internal UMDs from conflicting\n\n[![Build Status](https://img.shields.io/travis/ForbesLindesay/umd/master.svg)](https://travis-ci.org/ForbesLindesay/umd)\n[![Dependency Status](https://img.shields.io/david/ForbesLindesay/umd.svg)](https://david-dm.org/ForbesLindesay/umd)\n[![NPM version](https://img.shields.io/npm/v/umd.svg)](https://www.npmjs.com/package/umd)\n\n## Source Format\n\nIn order for the UMD wrapper to work the source code for your module should `return` the export, e.g.\n\n```javascript\nfunction method() {\n  //code\n}\nmethod.helper = function () {\n  //code\n}\nreturn method;\n```\n\nFor examples, see the examples directory.  The CommonJS module format is also supported by passing true as the second argument to methods.\n\n## API\n\noptions:\n\n - `commonJS` (default: `false`) - If commonJS is `true` then it will accept CommonJS source instead of source code which `return`s the module.\n\n### umd(name, source, [options])\n\n  The `name` should the the name of the module.  Use a string like name, all lower case with hyphens instead of spaces.\n\n  If `source` should be a string, that is wrapped in umd and returned as a string.\n\n### umd.prelude(module, [options])\n\n  return the text which will be inserted before a module.\n\n### umd.postlude(module, [options])\n\n  return the text which will be inserted after a module.\n\n## Command Line\n\n```\nUsage: umd <name> <source> <destination> [options]\n\nPipe Usage: umd <name> [options] < source > destination\n\nOptions:\n\n -h --help     Display usage information\n -c --commonJS Use CommonJS module format\n ```\n\n You can easilly pipe unix commands together like:\n\n ```js\n cat my-module.js | umd my-module | uglify-js > my-module.umd.min.js\n ```\n\n## Name Casing and Characters\n\nThe `name` passed to `umd` will be converted to camel case (`my-library` becomes `myLibrary`) and may only contain:\n\n* alphanumeric characters\n* $\n* _\n\nThe name may not begin with a number. Invalid characters will be stripped. \n\n## License\n\n  MIT\n","_attachments":{},"homepage":"https://github.com/ForbesLindesay/umd#readme","bugs":{"url":"https://github.com/ForbesLindesay/umd/issues"},"license":"MIT"}