{"_id":"udefine","_rev":"36-66e921a73b5af2ed61467ed225ff8127","name":"udefine","description":"Define an UMD module like an AMD module and use it (almost) anywhere","dist-tags":{"latest":"0.8.9"},"versions":{"0.7.0":{"name":"udefine","version":"0.7.0","devDependencies":{"mocha":"*","chai":"*","grunt":"0.4.x","grunt-contrib-coffee":"*","grunt-contrib-uglify":"*"},"description":"udefine\r =======","_id":"udefine@0.7.0","dist":{"shasum":"ef3f87c801e36f87897b0a601b0e8e88968a561f","tarball":"https://registry.npmjs.org/udefine/-/udefine-0.7.0.tgz","integrity":"sha512-SqCXOfcKFdMKPZWYr6Cx+TADTGsP4WnNghtflTE0+0XAWVcLCXNqXxYIcCsN3TDTalEmOXoZBwz2iDnfHWoeMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPSIYYD2XFs9y0EkgkhH6t/LphMQ73mY7PjnfE1e+VugIgLWjZo9CAylhNiUPom/ZCrJxwuBXK2l9foqueeEummpo="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"stoney","email":"johannesstein@freeze-dev.com"},"maintainers":[{"name":"stoney","email":"johannesstein@freeze-dev.com"}]},"0.7.4":{"name":"udefine","version":"0.7.4","devDependencies":{"mocha":"*","chai":"*","grunt":"0.4.x","grunt-contrib-coffee":"*","grunt-contrib-uglify":"*"},"description":"udefine\r =======","_id":"udefine@0.7.4","dist":{"shasum":"bf17af6b657b6deedec0ab549e3a46c89bd740cf","tarball":"https://registry.npmjs.org/udefine/-/udefine-0.7.4.tgz","integrity":"sha512-YEfwNC0gz6D9UsBIYLq8bW+K3ml5Yd5QOTSgGnAKFFovCiVf1RLCPJkpeXq9+vbuTBFDjCnQ5Nvy1IM+7hBSiA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEtR247Xmwwg2E3t8psIVaWTPI1E2dyXFL/yyY+NyOV+AiAybJM5kjx+5AlNyxpN+woNZbi79wduryDCOrjZeptz6g=="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"stoney","email":"johannesstein@freeze-dev.com"},"maintainers":[{"name":"stoney","email":"johannesstein@freeze-dev.com"}]},"0.7.5":{"name":"udefine","version":"0.7.5","devDependencies":{"mocha":"*","chai":"*","grunt":"0.4.x","grunt-contrib-coffee":"*","grunt-contrib-uglify":"*"},"description":"udefine\r =======","_id":"udefine@0.7.5","dist":{"shasum":"486cc6c61aa22affe3f8ba0784b84b2de18a6034","tarball":"https://registry.npmjs.org/udefine/-/udefine-0.7.5.tgz","integrity":"sha512-Q89S5n8Hv8UVYIF0kjR+RMUJODx7qYTRCFXuLMMqkiAc4ZQYwJTSQXU4+FOmTh/5pD5yBiP/GH2StFzk78nZNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFdlROzEt/vtLUyaSQekZ3d5EsjdEbXBXe9KfzK7NA4GAiEA0e446amfAB5Y8wk9tHswozBNs49dRDywpHiaz7M7Y1U="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"stoney","email":"johannesstein@freeze-dev.com"},"maintainers":[{"name":"stoney","email":"johannesstein@freeze-dev.com"}]},"0.7.6":{"name":"udefine","version":"0.7.6","main":"dist/udefine.js","devDependencies":{"mocha":"*","chai":"*","grunt":"0.4.x","grunt-contrib-coffee":"*","grunt-contrib-uglify":"*"},"repository":{"type":"git","url":"https://github.com/freezedev/udefine.git"},"description":"udefine\r =======","bugs":{"url":"https://github.com/freezedev/udefine/issues"},"_id":"udefine@0.7.6","dist":{"shasum":"76edd5c9039e329764e073463de5becaeb2b1fa3","tarball":"https://registry.npmjs.org/udefine/-/udefine-0.7.6.tgz","integrity":"sha512-gcnfMF8Lc09iwX2Ui4tvm0kVE5nLnBoJL2fCpsCkgZN99m3Tfu8kwHmDzxP8oHabSuY+N/VZJUOke6fy9BOFZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAGWZg/NdqaOR0o4h7CZuIbB6ZEevOnKwiF/KABLj1jJAiEA6/oYtNOcE8GdqLv7PG5tlwhtiBc5tx8pBu7QtbvtxGo="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"stoney","email":"johannesstein@freeze-dev.com"},"maintainers":[{"name":"stoney","email":"johannesstein@freeze-dev.com"}]},"0.7.7":{"name":"udefine","version":"0.7.7","main":"dist/udefine.js","devDependencies":{"mocha":"*","chai":"*","grunt":"0.4.x","grunt-contrib-coffee":"*","grunt-contrib-uglify":"*"},"repository":{"type":"git","url":"https://github.com/freezedev/udefine.git"},"description":"udefine\r =======","bugs":{"url":"https://github.com/freezedev/udefine/issues"},"_id":"udefine@0.7.7","dist":{"shasum":"1651fc94b18b8746c818588249997d46fabdce32","tarball":"https://registry.npmjs.org/udefine/-/udefine-0.7.7.tgz","integrity":"sha512-ts5GJC28BKwAeytJNS73910Q3Fw6i+v1NV/jd1Bx3ZHMah58M4OAQ6uPdbN9AZNcuf1WVIO4P/UkPnziSqE06Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3ezDlgNEkdmHMdfhZfdLoQplvQEWs+5KMIMZn/tTe0AIhAL2w3/1ArEbV75Oe6HEdfHtsjG3GTxbhGDJfCsS+1KHW"}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"stoney","email":"johannesstein@freeze-dev.com"},"maintainers":[{"name":"stoney","email":"johannesstein@freeze-dev.com"}]},"0.7.8":{"name":"udefine","version":"0.7.8","main":"dist/udefine.js","devDependencies":{"mocha":"*","chai":"*","grunt":"0.4.x","grunt-contrib-coffee":"*","grunt-contrib-uglify":"*"},"repository":{"type":"git","url":"https://github.com/freezedev/udefine.git"},"description":"udefine\r =======","bugs":{"url":"https://github.com/freezedev/udefine/issues"},"_id":"udefine@0.7.8","dist":{"shasum":"06ac94451981bde483659afe0a87d6dd70ab0aed","tarball":"https://registry.npmjs.org/udefine/-/udefine-0.7.8.tgz","integrity":"sha512-JQ8puG9VvO/hlRZYF3kGw/5r6DoW96pR5Dd11lsFNxlBy7+mZKk02/mWOntgOwRDWBqVu0z+Ci25/wexbbN0Zw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBYKGQRUoFAmMyMcsI6EUNPX/7hZLEur6ud+2N3XFl+DAiEAjffgURrapG8ksni27SFsmu6//GRQFhme2ypFdcR2iY0="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"stoney","email":"johannesstein@freeze-dev.com"},"maintainers":[{"name":"stoney","email":"johannesstein@freeze-dev.com"}]},"0.8.0":{"name":"udefine","description":"Define a module like it's an AMD module and use it in the browser/AMD and CommonJS","version":"0.8.0","main":"dist/udefine.js","devDependencies":{"mocha":"*","chai":"*","grunt":"0.4.x","grunt-contrib-coffee":"*","grunt-contrib-uglify":"*","grunt-contrib-clean":"*","grunt-mocha-test":"*","grunt-mocha":"*","grunt-coffeelint":"*","grunt-templater":"*","matchdep":"*","handlebars":"*"},"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/freezedev/udefine.git"},"bugs":{"url":"https://github.com/freezedev/udefine/issues"},"_id":"udefine@0.8.0","dist":{"shasum":"9359604a07c9fa5415f77c7b78b1755994198a75","tarball":"https://registry.npmjs.org/udefine/-/udefine-0.8.0.tgz","integrity":"sha512-kGqZMdaWX6LVMiHEVKArZDT0JPIsE7ZvasRHe/nu+XHgO/W/hWoNrKq+nireplAOc9T5Nma50pSxcgtHQSsKWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFqjF9/2hobnKGi06O56D0oJcA9PeUMyk4QpY1/v0q8wAiAPLUPa8azHrE6+6h3KIpwU8GNaZdZmLh9UM6JG6bByTQ=="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"stoney","email":"johannesstein@freeze-dev.com"},"maintainers":[{"name":"stoney","email":"johannesstein@freeze-dev.com"}]},"0.8.1":{"name":"udefine","description":"Define a module like it's an AMD module and use it in the browser/AMD and CommonJS","version":"0.8.1","main":"dist/udefine.js","devDependencies":{"mocha":"*","chai":"*","grunt":"0.4.x","grunt-contrib-coffee":"*","grunt-contrib-uglify":"*","grunt-contrib-clean":"*","grunt-mocha-test":"*","grunt-mocha":"*","grunt-coffeelint":"*","grunt-templater":"*","matchdep":"*","handlebars":"*"},"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/freezedev/udefine.git"},"bugs":{"url":"https://github.com/freezedev/udefine/issues"},"_id":"udefine@0.8.1","dist":{"shasum":"efcb5d13d24cbaebe58c7f5132a77b7259ba07bb","tarball":"https://registry.npmjs.org/udefine/-/udefine-0.8.1.tgz","integrity":"sha512-v28uxMajfu1HkQnU0CaxQR/w3wVhCFOP3lAOjS4KhbYOgqZv9WnUDvwaIIZcLIqhSKWgfxhimwBfSd1ObAWhTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHk9y8UBy/rCbruB8Xd7JsSWP0pXp1NG/hHtVipCs/wDAiAjW6MUgGs8pXAO5Mk3Eo40pRzx/wVpVKlPR/91eJ20LA=="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"stoney","email":"johannesstein@freeze-dev.com"},"maintainers":[{"name":"stoney","email":"johannesstein@freeze-dev.com"}]},"0.8.2":{"name":"udefine","description":"Define a module like it's an AMD module and use it in the browser/AMD and CommonJS","version":"0.8.2","main":"dist/udefine.js","devDependencies":{"mocha":"*","chai":"*","grunt":"0.4.x","grunt-contrib-coffee":"*","grunt-contrib-uglify":"*","grunt-contrib-clean":"*","grunt-mocha-test":"*","grunt-mocha":"*","grunt-coffeelint":"*","grunt-templater":"*","matchdep":"*","handlebars":"*"},"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/freezedev/udefine.git"},"bugs":{"url":"https://github.com/freezedev/udefine/issues"},"_id":"udefine@0.8.2","dist":{"shasum":"9723fbd9e369ac49835a5e07456d0a196ef7c41e","tarball":"https://registry.npmjs.org/udefine/-/udefine-0.8.2.tgz","integrity":"sha512-7D2C/w63Kl/NTyLKdebOHOfUag/ekKd32B1sFwOmPaRLp3ZUiVk1QzCuSZ3CUVQMwD+iXtWY04jn/6UUCZK5Sg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGFp1HnHL3ZPuK7TDZBBvtwqg5JnBOHLsrPnomp8hhz2AiAcH5rilBm/JDz80tN/er93RLTNlA9H3YLASILTW+oK1g=="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"stoney","email":"johannesstein@freeze-dev.com"},"maintainers":[{"name":"stoney","email":"johannesstein@freeze-dev.com"}]},"0.8.3":{"name":"udefine","description":"Define an UMD module like an AMD module and use it (almost) anywhere","version":"0.8.3","main":"dist/udefine.js","devDependencies":{"mocha":"*","chai":"*","grunt":"0.4.x","grunt-contrib-coffee":"*","grunt-contrib-uglify":"*","grunt-contrib-clean":"*","grunt-mocha-test":"*","grunt-mocha":"*","grunt-coffeelint":"*","grunt-templater":"*","matchdep":"*","handlebars":"*"},"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/freezedev/udefine.git"},"bugs":{"url":"https://github.com/freezedev/udefine/issues"},"_id":"udefine@0.8.3","dist":{"shasum":"a625ff0821bb0e69fb1747f5d53061064e438d31","tarball":"https://registry.npmjs.org/udefine/-/udefine-0.8.3.tgz","integrity":"sha512-69pkQ/xcAnhzTLRPHMz7FpoR6VCo4VdVZiypNCFk9P9zNUWrMhGgzemKZGH+ouV89M1+pzKEUoTX4jjgpgTetA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICLRfQQOHLewptlSVk/btn/GDKLOa4trswPKav9x9KAxAiEA65UC2lU/P9hqKFGbwER1/ijz7TAEsbddTnEfQaQoZek="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"stoney","email":"johannesstein@freeze-dev.com"},"maintainers":[{"name":"stoney","email":"johannesstein@freeze-dev.com"}]},"0.8.4":{"name":"udefine","description":"Define an UMD module like an AMD module and use it (almost) anywhere","version":"0.8.4","main":"dist/udefine.js","devDependencies":{"mocha":"*","chai":"*","grunt":"0.4.x","grunt-contrib-coffee":"*","grunt-contrib-uglify":"*","grunt-contrib-clean":"*","grunt-mocha-test":"*","grunt-mocha":"*","grunt-coffeelint":"*","grunt-templater":"*","matchdep":"*","handlebars":"*"},"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/freezedev/udefine.git"},"bugs":{"url":"https://github.com/freezedev/udefine/issues"},"_id":"udefine@0.8.4","dist":{"shasum":"733760c0d6c83fd88bd5da5ccdb2f075580d5e02","tarball":"https://registry.npmjs.org/udefine/-/udefine-0.8.4.tgz","integrity":"sha512-+c8xG8Mgvjj3I2NOxnQzKqAPK2A5QaQhWTuNxCRsrJ15vB0aKJdMs0vkozMVlgHd5mlGyOPxuEyL/rOUSXivfg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFe6fn4a1iONNOAgz+slKYXm5BznF4suazIbtht1Wu0qAiBxq0WzgAKJbWY515018CpGrU0Oa0OFfEBsaY9xFqluuQ=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"stoney","email":"johannesstein@freeze-dev.com"},"maintainers":[{"name":"stoney","email":"johannesstein@freeze-dev.com"}]},"0.8.5":{"name":"udefine","description":"Define an UMD module like an AMD module and use it (almost) anywhere","version":"0.8.5","main":"dist/udefine.js","devDependencies":{"mocha":"*","chai":"*","grunt":"0.4.x","grunt-contrib-coffee":"*","grunt-contrib-uglify":"*","grunt-contrib-clean":"*","grunt-mocha-test":"*","grunt-mocha":"*","grunt-coffeelint":"*","grunt-templater":"*","matchdep":"*","handlebars":"*"},"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/freezedev/udefine.git"},"bugs":{"url":"https://github.com/freezedev/udefine/issues"},"_id":"udefine@0.8.5","dist":{"shasum":"3538219ad7cd08aa76e756b1d9c29f7b2d744b51","tarball":"https://registry.npmjs.org/udefine/-/udefine-0.8.5.tgz","integrity":"sha512-UrbXmfySx66wna3I15I5uHCUgUn7zJgLRBAQCKsPpzyW48V32bQ/G9W19zfjDvJsrDVPkBOYYWNnO30dTT/OkQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDeq1e6eEgVm/W5x9p8ft1FVt4awfLMw5aXugn5oVMO3gIhAObu96F6rPDcQ4DG0+18fSpO9cyHLzOJSRZ7X/tYkTiS"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"stoney","email":"johannesstein@freeze-dev.com"},"maintainers":[{"name":"stoney","email":"johannesstein@freeze-dev.com"}]},"0.8.6":{"name":"udefine","description":"Define an UMD module like an AMD module and use it (almost) anywhere","version":"0.8.6","main":"dist/udefine.js","devDependencies":{"mocha":"*","chai":"*","grunt":"0.4.x","grunt-contrib-coffee":"*","grunt-contrib-uglify":"*","grunt-contrib-clean":"*","grunt-mocha-test":"*","grunt-mocha":"*","grunt-coffeelint":"*","grunt-templater":"*","matchdep":"*","handlebars":"*"},"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/freezedev/udefine.git"},"bugs":{"url":"https://github.com/freezedev/udefine/issues"},"_id":"udefine@0.8.6","dist":{"shasum":"1d96787c96cfd8346397930318c5f251c5d35911","tarball":"https://registry.npmjs.org/udefine/-/udefine-0.8.6.tgz","integrity":"sha512-pe5R0VpXYy4IYdG/24D213+jmhJeHvv4G+7467RZcq4S3mGuymV0nyQWaAKoKpRSe9VWy+0qkxajvnR1GwPfng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICaC8mkj5nT6lbhLecv6uGpmcrB9Qa1zzfjMtKsx2KUcAiACpDXyE28U/sMogbZ0mRCiDKnS1dU9SXuafX7BcR4Jtg=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"stoney","email":"johannesstein@freeze-dev.com"},"maintainers":[{"name":"stoney","email":"johannesstein@freeze-dev.com"}]},"0.8.7":{"name":"udefine","description":"Define an UMD module like an AMD module and use it (almost) anywhere","version":"0.8.7","main":"dist/udefine.js","devDependencies":{"mocha":"*","chai":"*","grunt":"0.4.x","grunt-contrib-coffee":"*","grunt-contrib-uglify":"*","grunt-contrib-clean":"*","grunt-mocha-test":"*","grunt-mocha":"*","grunt-coffeelint":"*","grunt-templater":"*","matchdep":"*","handlebars":"*"},"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/freezedev/udefine.git"},"bugs":{"url":"https://github.com/freezedev/udefine/issues"},"_id":"udefine@0.8.7","dist":{"shasum":"e09c4fbf258cbec1edac06c72cf3a5f63e074d64","tarball":"https://registry.npmjs.org/udefine/-/udefine-0.8.7.tgz","integrity":"sha512-yYFsYlwybP5V7bgWDmeowxegXg3wE6h/TJ4LKmVdT7odEFDVl/UUKGZEcdY/iN5QcUS7s8Z9Y3zqfCtHksK1cg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFMHZ6BYFru4m8yBwDbfOX0MLYPzC0VhW2QgWzLJ4NtpAiAMz5D7snVjwqAfgJYYhieuD4dELIsipbvdqoyfg4UJhg=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"stoney","email":"johannesstein@freeze-dev.com"},"maintainers":[{"name":"stoney","email":"johannesstein@freeze-dev.com"}]},"0.8.8":{"name":"udefine","description":"Define an UMD module like an AMD module and use it (almost) anywhere","version":"0.8.8","main":"dist/udefine.js","devDependencies":{"mocha":"*","chai":"*","grunt":"0.4.x","grunt-contrib-coffee":"*","grunt-contrib-uglify":"*","grunt-contrib-clean":"*","grunt-mocha-test":"*","grunt-mocha":"*","grunt-coffeelint":"*","grunt-templater":"*","matchdep":"*","handlebars":"*"},"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/freezedev/udefine.git"},"bugs":{"url":"https://github.com/freezedev/udefine/issues"},"_id":"udefine@0.8.8","dist":{"shasum":"149237faf5c297f53aa07541521267f743208df1","tarball":"https://registry.npmjs.org/udefine/-/udefine-0.8.8.tgz","integrity":"sha512-37bVaMbvclwTAa1uxIa6DjO5ffjVKUuLN3V2Vp7eudWvVE/R+BZoQ53rghrYAuw+oMGzV8gkxWeUU5Eaov91NQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCH2mxO3/DaqFoGyfuUAYu/R5zqt4KjaYV9GQcd2i+swIhAMSYo2+TgN9tCfAwJfOzOh9W+JR9AhaPuG3Mh+2YUa3u"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"stoney","email":"johannesstein@freeze-dev.com"},"maintainers":[{"name":"stoney","email":"johannesstein@freeze-dev.com"}]},"0.8.9":{"name":"udefine","description":"Define an UMD module like an AMD module and use it (almost) anywhere","version":"0.8.9","main":"dist/udefine.js","devDependencies":{"mocha":"*","chai":"*","grunt":"0.4.x","grunt-contrib-coffee":"*","grunt-contrib-uglify":"*","grunt-contrib-clean":"*","grunt-mocha-test":"*","grunt-mocha":"*","grunt-coffeelint":"*","grunt-templater":"*","matchdep":"*","handlebars":"*"},"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/freezedev/udefine.git"},"bugs":{"url":"https://github.com/freezedev/udefine/issues"},"homepage":"https://github.com/freezedev/udefine","_id":"udefine@0.8.9","_shasum":"d88ae199366438fc48fe85366b9fc91e78dbe4c8","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"stoney","email":"johannesstein@freeze-dev.com"},"maintainers":[{"name":"stoney","email":"johannesstein@freeze-dev.com"}],"dist":{"shasum":"d88ae199366438fc48fe85366b9fc91e78dbe4c8","tarball":"https://registry.npmjs.org/udefine/-/udefine-0.8.9.tgz","integrity":"sha512-6JMkZxZASZaC/TIE8z7CG8GfmmC1vv060noOfXnbwfjmakPY4+L6XsLcPVIm+nVARnygdsczhApBh0MOdAyK3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHOa/2ILdoxkk2YnImZHYAf1Bd4oluSc6Uzafm+Qq9FCAiEA+F7eXzcXr5oS9o3sP2x9Am/6yJMKEqRa/+CikLF3f9U="}]}}},"readme":"udefine\r\n=======\r\n[![Build Status](https://travis-ci.org/freezedev/udefine.png)](https://travis-ci.org/freezedev/udefine)\r\n[![Dependency Status](https://david-dm.org/freezedev/udefine.png)](https://david-dm.org/freezedev/udefine)\r\n[![devDependency Status](https://david-dm.org/freezedev/udefine/dev-status.png)](https://david-dm.org/freezedev/udefine#info=devDependencies)\r\n\r\nDefine an UMD module like an AMD module and use it (almost) anywhere\r\n\r\n**Why would you need it?**  \r\n- You are writing that needs to available in Node.js, AMD and/or as global objects  \r\n- You need some kind of basic dependency resolution for your modules  \r\n\r\n\r\n**Features**  \r\n- Provides a handy function wrapper for UMD modules  \r\n- Same fuction signature as AMD modules  \r\n- No need for boilerplate definitions  \r\n- Less than 0.6 kB minified and gzipped (might increase a bit, but I'll keep it under 1kb)  \r\n\r\n**Usage**  \r\n```javascript\r\n(function(root) {\r\n  // This definition only needs to be done once, not per module\r\n  root.udefine.globals.jquery = this.jQuery;\r\n})(this);\r\n\r\nudefine('mymodule', ['jquery'], function($) {\r\n  $.fn.myModule = function() { /* ... */ };\r\n});\r\n```\r\n\r\nIf an AMD module loader like RequireJS has been integrated and configured, \r\nit will resolve through the AMD loader.\r\n\r\n\r\nAlright, that's really great for jQuery modules. But what if you want to bind\r\na module the global namespace if there is no AMD or CommonJS?\r\nJust define where the module should be injected to and udefine will do the rest:\r\n\r\n```javascript\r\nudefine.configure(function(root) {\r\n  udefine.inject['myothermodule'] = {\r\n    root: root,\r\n    name: 'myOtherModule'\r\n  };  \r\n});\r\n\r\nudefine('myothermodule', function() {\r\n  return {\r\n    a: function() { return 5; },\r\n    b: 2\r\n  };\r\n});\r\n\r\n// root.myOtherModule now is an object with the properties a and b.\r\n// (In a non-AMD or non-CommonJS environment.)\r\n```\r\n\r\n**CommonJS pitfalls**  \r\nIf using `module.exports` for exporting your modules on CommonJS, it does not\r\nexport correctly on udefine 0.8.x.\r\n(Exporting with `exports` using the injection API works though.)\r\nTo counteract this behavior, you would need a bit of boilerplate code:\r\n```javascript\r\n(function() {\r\n  udefine.configure(function(root) {\r\n    this.globals(function() {\r\n      udefine.inject['mycoolmodule'] = {\r\n        root: root,\r\n        name: 'myCoolModule'\r\n      };  \r\n    });\r\n  });\r\n\r\n\r\n  udefine('mycoolmodule', function() {\r\n    return {\r\n      a: function() { return 5; },\r\n      b: 2\r\n    };\r\n  });\r\n\r\n  if (udefine.env.commonjs) {\r\n    udefine.require('mycoolmodule', function(myCoolModule) {\r\n      module.exports = myCoolModule;\r\n    });\r\n  }\r\n\r\n}).call(this);\r\n\r\n// root.myOtherModule now is an object with the properties a and b.\r\n// (In a non-AMD or non-CommonJS environment.)\r\n```\r\n\r\nudefine is not and does not replace a module loader. It is primarily intended for\r\ndevelopers who want their library to target AMD modules, CommonJS modules and/or\r\nthe classic way of binding object to the global window object.\r\n\r\nFor more examples, take a look at the *examples* folder.\r\n\r\n**License**  \r\nThis is public domain. See *UNLICENSE.md* for more information.\r\n\r\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/freezedev/udefine/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\r\n\r\n","maintainers":[{"name":"stoney","email":"johannesstein@freeze-dev.com"}],"time":{"modified":"2022-06-28T02:53:37.482Z","created":"2013-08-30T20:31:22.385Z","0.7.0":"2013-08-30T20:31:27.515Z","0.7.4":"2013-09-02T21:10:37.394Z","0.7.5":"2013-09-02T21:20:44.837Z","0.7.6":"2013-09-02T21:39:53.841Z","0.7.7":"2013-09-02T21:56:02.513Z","0.7.8":"2013-09-04T17:23:05.042Z","0.8.0":"2013-09-16T20:14:49.900Z","0.8.1":"2013-09-16T21:04:39.493Z","0.8.2":"2013-09-16T21:38:23.752Z","0.8.3":"2013-09-23T19:19:24.961Z","0.8.4":"2013-09-25T18:24:27.616Z","0.8.5":"2013-09-25T18:49:01.914Z","0.8.6":"2013-09-25T19:15:13.327Z","0.8.7":"2013-09-30T19:35:36.832Z","0.8.8":"2013-10-04T20:45:45.339Z","0.8.9":"2014-06-16T08:13:32.683Z"},"repository":{"type":"git","url":"https://github.com/freezedev/udefine.git"},"homepage":"https://github.com/freezedev/udefine","bugs":{"url":"https://github.com/freezedev/udefine/issues"},"readmeFilename":"README.md"}