]> git.r.bdr.sh - rbdr/dotfiles/blob - atom/.apm/registry.npmjs.org/amdefine/.cache.json
Add two new submodules
[rbdr/dotfiles] / atom / .apm / registry.npmjs.org / amdefine / .cache.json
1 {"_id":"amdefine","_rev":"22-bd5a8f194ca83bbf018248932e8c7d13","name":"amdefine","description":"Provide AMD's define() API for declaring modules in the AMD format","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.1":{"name":"amdefine","description":"Provide AMD's define() API for declaring modules in the AMD format","version":"0.0.1","homepage":"http://github.com/jrburke/amdefine.js","author":{"name":"James Burke","email":"jrburke@gmail.com","url":"http://github.com/jrburke"},"licenses":[{"type":"BSD","url":"https://github.com/jrburke/amdefine/blob/master/LICENSE"},{"type":"MIT","url":"https://github.com/jrburke/amdefine/blob/master/LICENSE"}],"main":"./amdefine.js","engines":{"node":">=0.6.0"},"_npmUser":{"name":"jrburke","email":"jrburke@gmail.com"},"_id":"amdefine@0.0.1","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.6.0","_defaultsLoaded":true,"dist":{"shasum":"20add952bf0f8941ae2765386c92310679d4a954","tarball":"http://registry.npmjs.org/amdefine/-/amdefine-0.0.1.tgz"},"maintainers":[{"name":"jrburke","email":"jrburke@gmail.com"}],"directories":{}},"0.0.2":{"name":"amdefine","description":"Provide AMD's define() API for declaring modules in the AMD format","version":"0.0.2","homepage":"http://github.com/jrburke/amdefine.js","author":{"name":"James Burke","email":"jrburke@gmail.com","url":"http://github.com/jrburke"},"licenses":[{"type":"BSD","url":"https://github.com/jrburke/amdefine/blob/master/LICENSE"},{"type":"MIT","url":"https://github.com/jrburke/amdefine/blob/master/LICENSE"}],"main":"./amdefine.js","engines":{"node":">=0.4.2"},"_npmUser":{"name":"jrburke","email":"jrburke@gmail.com"},"_id":"amdefine@0.0.2","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"e857fddd8f9f35706d79ea749769260eec8aaf64","tarball":"http://registry.npmjs.org/amdefine/-/amdefine-0.0.2.tgz"},"maintainers":[{"name":"jrburke","email":"jrburke@gmail.com"}],"directories":{}},"0.0.3":{"name":"amdefine","description":"Provide AMD's define() API for declaring modules in the AMD format","version":"0.0.3","homepage":"http://github.com/jrburke/amdefine.js","author":{"name":"James Burke","email":"jrburke@gmail.com","url":"http://github.com/jrburke"},"licenses":[{"type":"BSD","url":"https://github.com/jrburke/amdefine/blob/master/LICENSE"},{"type":"MIT","url":"https://github.com/jrburke/amdefine/blob/master/LICENSE"}],"main":"./amdefine.js","engines":{"node":">=0.4.2"},"_id":"amdefine@0.0.3","dist":{"shasum":"614a059498baf6145e43b08bd4e9bd03a76d8528","tarball":"http://registry.npmjs.org/amdefine/-/amdefine-0.0.3.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"jrburke","email":"jrburke@gmail.com"},"maintainers":[{"name":"jrburke","email":"jrburke@gmail.com"}],"directories":{}},"0.0.4":{"name":"amdefine","description":"Provide AMD's define() API for declaring modules in the AMD format","version":"0.0.4","homepage":"http://github.com/jrburke/amdefine.js","author":{"name":"James Burke","email":"jrburke@gmail.com","url":"http://github.com/jrburke"},"licenses":[{"type":"BSD","url":"https://github.com/jrburke/amdefine/blob/master/LICENSE"},{"type":"MIT","url":"https://github.com/jrburke/amdefine/blob/master/LICENSE"}],"main":"./amdefine.js","engines":{"node":">=0.4.2"},"_id":"amdefine@0.0.4","dist":{"shasum":"510e24a0f231314e1105b9c747e79aaed694a0e9","tarball":"http://registry.npmjs.org/amdefine/-/amdefine-0.0.4.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"jrburke","email":"jrburke@gmail.com"},"maintainers":[{"name":"jrburke","email":"jrburke@gmail.com"}],"directories":{}},"0.0.5":{"name":"amdefine","description":"Provide AMD's define() API for declaring modules in the AMD format","version":"0.0.5","homepage":"http://github.com/jrburke/amdefine","author":{"name":"James Burke","email":"jrburke@gmail.com","url":"http://github.com/jrburke"},"licenses":[{"type":"BSD","url":"https://github.com/jrburke/amdefine/blob/master/LICENSE"},{"type":"MIT","url":"https://github.com/jrburke/amdefine/blob/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/jrburke/amdefine.git"},"main":"./amdefine.js","engines":{"node":">=0.4.2"},"_id":"amdefine@0.0.5","dist":{"shasum":"86b6e9470f8cde955ef7daa3cf5d544ba81aa3db","tarball":"http://registry.npmjs.org/amdefine/-/amdefine-0.0.5.tgz"},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"jrburke","email":"jrburke@gmail.com"},"maintainers":[{"name":"jrburke","email":"jrburke@gmail.com"}],"directories":{}},"0.0.6":{"name":"amdefine","description":"Provide AMD's define() API for declaring modules in the AMD format","version":"0.0.6","homepage":"http://github.com/jrburke/amdefine","author":{"name":"James Burke","email":"jrburke@gmail.com","url":"http://github.com/jrburke"},"licenses":[{"type":"BSD","url":"https://github.com/jrburke/amdefine/blob/master/LICENSE"},{"type":"MIT","url":"https://github.com/jrburke/amdefine/blob/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/jrburke/amdefine.git"},"main":"./amdefine.js","engines":{"node":">=0.4.2"},"_id":"amdefine@0.0.6","dist":{"shasum":"71c4fa15af79f48f0f9ecb6f76e59ef56cfa9e11","tarball":"http://registry.npmjs.org/amdefine/-/amdefine-0.0.6.tgz"},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"jrburke","email":"jrburke@gmail.com"},"maintainers":[{"name":"jrburke","email":"jrburke@gmail.com"}],"directories":{}},"0.0.7":{"name":"amdefine","description":"Provide AMD's define() API for declaring modules in the AMD format","version":"0.0.7","homepage":"http://github.com/jrburke/amdefine","author":{"name":"James Burke","email":"jrburke@gmail.com","url":"http://github.com/jrburke"},"licenses":[{"type":"BSD","url":"https://github.com/jrburke/amdefine/blob/master/LICENSE"},{"type":"MIT","url":"https://github.com/jrburke/amdefine/blob/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/jrburke/amdefine.git"},"main":"./amdefine.js","engines":{"node":">=0.4.2"},"_id":"amdefine@0.0.7","dist":{"shasum":"701b674496bcb16aa2edb8db232b7f9c9332d3c8","tarball":"http://registry.npmjs.org/amdefine/-/amdefine-0.0.7.tgz"},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"jrburke","email":"jrburke@gmail.com"},"maintainers":[{"name":"jrburke","email":"jrburke@gmail.com"}],"directories":{}},"0.0.8":{"name":"amdefine","description":"Provide AMD's define() API for declaring modules in the AMD format","version":"0.0.8","homepage":"http://github.com/jrburke/amdefine","author":{"name":"James Burke","email":"jrburke@gmail.com","url":"http://github.com/jrburke"},"licenses":[{"type":"BSD","url":"https://github.com/jrburke/amdefine/blob/master/LICENSE"},{"type":"MIT","url":"https://github.com/jrburke/amdefine/blob/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/jrburke/amdefine.git"},"main":"./amdefine.js","engines":{"node":">=0.4.2"},"_id":"amdefine@0.0.8","dist":{"shasum":"34dc8c981e6acb3be1853bef8f0ec94a39d55ba0","tarball":"http://registry.npmjs.org/amdefine/-/amdefine-0.0.8.tgz"},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"jrburke","email":"jrburke@gmail.com"},"maintainers":[{"name":"jrburke","email":"jrburke@gmail.com"}],"directories":{}},"0.1.0":{"name":"amdefine","description":"Provide AMD's define() API for declaring modules in the AMD format","version":"0.1.0","homepage":"http://github.com/jrburke/amdefine","author":{"name":"James Burke","email":"jrburke@gmail.com","url":"http://github.com/jrburke"},"licenses":[{"type":"BSD","url":"https://github.com/jrburke/amdefine/blob/master/LICENSE"},{"type":"MIT","url":"https://github.com/jrburke/amdefine/blob/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/jrburke/amdefine.git"},"main":"./amdefine.js","engines":{"node":">=0.4.2"},"bugs":{"url":"https://github.com/jrburke/amdefine/issues"},"_id":"amdefine@0.1.0","dist":{"shasum":"3ca9735cf1dde0edf7a4bf6641709c8024f9b227","tarball":"http://registry.npmjs.org/amdefine/-/amdefine-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"jrburke","email":"jrburke@gmail.com"},"maintainers":[{"name":"jrburke","email":"jrburke@gmail.com"}],"directories":{}},"0.1.1":{"name":"amdefine","description":"Provide AMD's define() API for declaring modules in the AMD format","version":"0.1.1","homepage":"http://github.com/jrburke/amdefine","author":{"name":"James Burke","email":"jrburke@gmail.com","url":"http://github.com/jrburke"},"license":"BSD-3-Clause AND MIT","repository":{"type":"git","url":"https://github.com/jrburke/amdefine.git"},"main":"./amdefine.js","engines":{"node":">=0.4.2"},"gitHead":"fcadcc8080f47084b973bac3b3c4b3dd3e0f957d","bugs":{"url":"https://github.com/jrburke/amdefine/issues"},"_id":"amdefine@0.1.1","scripts":{},"_shasum":"b5c75c532052dccd6a39c0064c772c8d57a06cd2","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"jrburke","email":"jrburke@gmail.com"},"maintainers":[{"name":"jrburke","email":"jrburke@gmail.com"}],"dist":{"shasum":"b5c75c532052dccd6a39c0064c772c8d57a06cd2","tarball":"http://registry.npmjs.org/amdefine/-/amdefine-0.1.1.tgz"},"directories":{}}},"readme":"# amdefine\n\nA module that can be used to implement AMD's define() in Node. This allows you\nto code to the AMD API and have the module work in node programs without\nrequiring those other programs to use AMD.\n\n## Usage\n\n**1)** Update your package.json to indicate amdefine as a dependency:\n\n```javascript\n \"dependencies\": {\n \"amdefine\": \">=0.1.0\"\n }\n```\n\nThen run `npm install` to get amdefine into your project.\n\n**2)** At the top of each module that uses define(), place this code:\n\n```javascript\nif (typeof define !== 'function') { var define = require('amdefine')(module) }\n```\n\n**Only use these snippets** when loading amdefine. If you preserve the basic structure,\nwith the braces, it will be stripped out when using the [RequireJS optimizer](#optimizer).\n\nYou can add spaces, line breaks and even require amdefine with a local path, but\nkeep the rest of the structure to get the stripping behavior.\n\nAs you may know, because `if` statements in JavaScript don't have their own scope, the var\ndeclaration in the above snippet is made whether the `if` expression is truthy or not. If\nRequireJS is loaded then the declaration is superfluous because `define` is already already\ndeclared in the same scope in RequireJS. Fortunately JavaScript handles multiple `var`\ndeclarations of the same variable in the same scope gracefully.\n\nIf you want to deliver amdefine.js with your code rather than specifying it as a dependency\nwith npm, then just download the latest release and refer to it using a relative path:\n\n[Latest Version](https://github.com/jrburke/amdefine/raw/latest/amdefine.js)\n\n### amdefine/intercept\n\nConsider this very experimental.\n\nInstead of pasting the piece of text for the amdefine setup of a `define`\nvariable in each module you create or consume, you can use `amdefine/intercept`\ninstead. It will automatically insert the above snippet in each .js file loaded\nby Node.\n\n**Warning**: you should only use this if you are creating an application that\nis consuming AMD style defined()'d modules that are distributed via npm and want\nto run that code in Node.\n\nFor library code where you are not sure if it will be used by others in Node or\nin the browser, then explicitly depending on amdefine and placing the code\nsnippet above is suggested path, instead of using `amdefine/intercept`. The\nintercept module affects all .js files loaded in the Node app, and it is\ninconsiderate to modify global state like that unless you are also controlling\nthe top level app.\n\n#### Why distribute AMD-style modules via npm?\n\nnpm has a lot of weaknesses for front-end use (installed layout is not great,\nshould have better support for the `baseUrl + moduleID + '.js' style of loading,\nsingle file JS installs), but some people want a JS package manager and are\nwilling to live with those constraints. If that is you, but still want to author\nin AMD style modules to get dynamic require([]), better direct source usage and\npowerful loader plugin support in the browser, then this tool can help.\n\n#### amdefine/intercept usage\n\nJust require it in your top level app module (for example index.js, server.js):\n\n```javascript\nrequire('amdefine/intercept');\n```\n\nThe module does not return a value, so no need to assign the result to a local\nvariable.\n\nThen just require() code as you normally would with Node's require(). Any .js\nloaded after the intercept require will have the amdefine check injected in\nthe .js source as it is loaded. It does not modify the source on disk, just\nprepends some content to the text of the module as it is loaded by Node.\n\n#### How amdefine/intercept works\n\nIt overrides the `Module._extensions['.js']` in Node to automatically prepend\nthe amdefine snippet above. So, it will affect any .js file loaded by your\napp.\n\n## define() usage\n\nIt is best if you use the anonymous forms of define() in your module:\n\n```javascript\ndefine(function (require) {\n var dependency = require('dependency');\n});\n```\n\nor\n\n```javascript\ndefine(['dependency'], function (dependency) {\n\n});\n```\n\n## RequireJS optimizer integration. <a name=\"optimizer\"></name>\n\nVersion 1.0.3 of the [RequireJS optimizer](http://requirejs.org/docs/optimization.html)\nwill have support for stripping the `if (typeof define !== 'function')` check\nmentioned above, so you can include this snippet for code that runs in the\nbrowser, but avoid taking the cost of the if() statement once the code is\noptimized for deployment.\n\n## Node 0.4 Support\n\nIf you want to support Node 0.4, then add `require` as the second parameter to amdefine:\n\n```javascript\n//Only if you want Node 0.4. If using 0.5 or later, use the above snippet.\nif (typeof define !== 'function') { var define = require('amdefine')(module, require) }\n```\n\n## Limitations\n\n### Synchronous vs Asynchronous\n\namdefine creates a define() function that is callable by your code. It will\nexecute and trace dependencies and call the factory function *synchronously*,\nto keep the behavior in line with Node's synchronous dependency tracing.\n\nThe exception: calling AMD's callback-style require() from inside a factory\nfunction. The require callback is called on process.nextTick():\n\n```javascript\ndefine(function (require) {\n require(['a'], function(a) {\n //'a' is loaded synchronously, but\n //this callback is called on process.nextTick().\n });\n});\n```\n\n### Loader Plugins\n\nLoader plugins are supported as long as they call their load() callbacks\nsynchronously. So ones that do network requests will not work. However plugins\nlike [text](http://requirejs.org/docs/api.html#text) can load text files locally.\n\nThe plugin API's `load.fromText()` is **not supported** in amdefine, so this means\ntranspiler plugins like the [CoffeeScript loader plugin](https://github.com/jrburke/require-cs)\nwill not work. This may be fixable, but it is a bit complex, and I do not have\nenough node-fu to figure it out yet. See the source for amdefine.js if you want\nto get an idea of the issues involved.\n\n## Tests\n\nTo run the tests, cd to **tests** and run:\n\n```\nnode all.js\nnode all-intercept.js\n```\n\n## License\n\nNew BSD and MIT. Check the LICENSE file for all the details.\n","maintainers":[{"name":"jrburke","email":"jrburke@gmail.com"}],"time":{"modified":"2015-06-08T21:00:25.583Z","created":"2011-12-10T01:16:02.521Z","0.0.1":"2011-12-10T01:16:03.912Z","0.0.2":"2012-02-28T22:11:53.033Z","0.0.3":"2012-10-15T00:18:41.972Z","0.0.4":"2012-10-15T05:02:38.640Z","0.0.5":"2013-05-08T17:30:15.875Z","0.0.6":"2013-08-02T18:39:56.943Z","0.0.7":"2013-08-03T01:16:01.971Z","0.0.8":"2013-08-03T06:43:30.058Z","0.1.0":"2013-10-15T04:52:41.100Z","0.1.1":"2015-06-08T21:00:25.583Z"},"author":{"name":"James Burke","email":"jrburke@gmail.com","url":"http://github.com/jrburke"},"repository":{"type":"git","url":"https://github.com/jrburke/amdefine.git"},"users":{"nate-wilkins":true,"subchen":true},"homepage":"http://github.com/jrburke/amdefine","bugs":{"url":"https://github.com/jrburke/amdefine/issues"},"license":"BSD-3-Clause AND MIT","readmeFilename":"README.md","_attachments":{},"_etag":"\"4YYSFNXID9MUWP27KTSW2EKU8\""}