{"_id":"twoside","_rev":"27-10a55356fc56933414feeaf317160281","name":"twoside","description":"make module can be used in both server side and client side","dist-tags":{"latest":"0.1.9"},"versions":{"0.1.0":{"name":"twoside","version":"0.1.0","description":"make module can be used in both server side and client side","author":{"name":"Caoxingming","email":"simeon.chaos@gmail.com","url":"https://github.com/chaosim"},"engines":{"node":"*"},"repository":{"type":"git","url":"https://github.com/chaosim/twoside.git"},"bugs":{"url":"https://github.com/chaosim/twoside/issues"},"licenses":[{"type":"MIT","url":"https://github.com/chaosim/twoside/raw/master/LICENSE"}],"main":"src/twoside.js","scripts":{"test":"node src/nodesample.js"},"homepage":"https://github.com/chaosim/twoside","_id":"twoside@0.1.0","dist":{"shasum":"668a7ce7379b754247a6d661bc6d09d60044d6c4","tarball":"https://registry.npmjs.org/twoside/-/twoside-0.1.0.tgz","integrity":"sha512-riXQc11UODibZxy1JLabbLOWKsR3h25tmRPemasFAFjlktblElNk4oTXc86z6JwWK6GiNFMV31zWcTy78GKV2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGGxjJt8eMUdmV8lhAeQiDMN1tBevgyxg+MamEcYmR7EAiEAyWplNS1n+rNxJY75odqtW6qBlTSE2bqut0Pqob4rRhw="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"chaosim","email":"simeon.chaos@gmail.com"},"maintainers":[{"name":"chaosim","email":"simeon.chaos@gmail.com"}]},"0.1.1":{"name":"twoside","version":"0.1.1","description":"make module can be used in both server side and client side","author":{"name":"Caoxingming","email":"simeon.chaos@gmail.com","url":"https://github.com/chaosim"},"engines":{"node":"*"},"repository":{"type":"git","url":"https://github.com/chaosim/twoside.git"},"bugs":{"url":"https://github.com/chaosim/twoside/issues"},"licenses":[{"type":"MIT","url":"https://github.com/chaosim/twoside/raw/master/LICENSE"}],"main":"src/twoside.js","scripts":{"test":"node src/nodesample.js"},"homepage":"https://github.com/chaosim/twoside","_id":"twoside@0.1.1","dist":{"shasum":"f749e5e20883a59db424e9c13b5c9fbd243e9f62","tarball":"https://registry.npmjs.org/twoside/-/twoside-0.1.1.tgz","integrity":"sha512-jUvSbHPqMdVCbRl+mKhnzqY7Ceg7BoxzypANHgf8KyaOSBbWwC/6G7TOq3bqgnRZ5W7/w8rfKv5zjIKNTwlHyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTkPRZlD2Qeg6hvQ40Gv0ToJ/07GZCeEPo5PEZ/0Jj0wIhAJHMOzJE3JPNjJm/iT50tKdcdwJFjIciMTnfyGpFAWTe"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"chaosim","email":"simeon.chaos@gmail.com"},"maintainers":[{"name":"chaosim","email":"simeon.chaos@gmail.com"}]},"0.1.2":{"name":"twoside","version":"0.1.2","description":"make module can be used in both server side and client side","author":{"name":"Caoxingming","email":"simeon.chaos@gmail.com","url":"https://github.com/chaosim"},"engines":{"node":"*"},"repository":{"type":"git","url":"https://github.com/chaosim/twoside.git"},"bugs":{"url":"https://github.com/chaosim/twoside/issues"},"licenses":[{"type":"MIT","url":"https://github.com/chaosim/twoside/raw/master/LICENSE"}],"main":"src/twoside.js","scripts":{"test":"node src/nodesample.js"},"homepage":"https://github.com/chaosim/twoside","_id":"twoside@0.1.2","dist":{"shasum":"f22395984ae7e96c32f136a0a796da2da8becc9f","tarball":"https://registry.npmjs.org/twoside/-/twoside-0.1.2.tgz","integrity":"sha512-hnzCBZDu6Mt6O2jOEvh4VyNvkyGw8ciH0EzXJhCZEHqezbFMLEC61ezZnQhqFdT/rZkDyrg6VLmOYSNr9zuo8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtsGi8ienH11vmsyVmWau4mMlq/tl3rS/8jmEy7MQrXAIhAIGjcxEYI6Aclyno/ZgoXw5GQYFCQaR8JMLKPGxDw6OH"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"chaosim","email":"simeon.chaos@gmail.com"},"maintainers":[{"name":"chaosim","email":"simeon.chaos@gmail.com"}]},"0.1.3":{"name":"twoside","version":"0.1.3","description":"make module can be used in both server side and client side","author":{"name":"Caoxingming","email":"simeon.chaos@gmail.com","url":"https://github.com/chaosim"},"engines":{"node":"*"},"repository":{"type":"git","url":"https://github.com/chaosim/twoside.git"},"bugs":{"url":"https://github.com/chaosim/twoside/issues"},"licenses":[{"type":"MIT","url":"https://github.com/chaosim/twoside/raw/master/LICENSE"}],"main":"src/twoside.js","scripts":{"test":"node src/nodesample.js"},"homepage":"https://github.com/chaosim/twoside","_id":"twoside@0.1.3","dist":{"shasum":"809a6f89c9ce0ddc283bd42586c3b3cea155706d","tarball":"https://registry.npmjs.org/twoside/-/twoside-0.1.3.tgz","integrity":"sha512-zR+Pm/b+5uAxaZ/gqtPsAFqZECan+D/GBgX+rJOH/E/syQq03R+PayfKKQfAziZT5iFxaaafdCcUWl7s1PfOjg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA2iowcqTMpnCJ3fmjoGLtxJyJ6zibTWBu0m0tPCv8e4AiEApkSI3bSh40Uuaqs50b8jbF6NUoqk/T/2plONIh0WGQk="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"chaosim","email":"simeon.chaos@gmail.com"},"maintainers":[{"name":"chaosim","email":"simeon.chaos@gmail.com"}]},"0.1.4":{"name":"twoside","version":"0.1.4","description":"make module can be used in both server side and client side","author":{"name":"Caoxingming","email":"simeon.chaos@gmail.com","url":"https://github.com/chaosim"},"engines":{"node":"*"},"repository":{"type":"git","url":"https://github.com/chaosim/twoside.git"},"bugs":{"url":"https://github.com/chaosim/twoside/issues"},"licenses":[{"type":"MIT","url":"https://github.com/chaosim/twoside/raw/master/LICENSE"}],"main":"src/twoside.js","scripts":{"test":"node src/nodesample.js"},"homepage":"https://github.com/chaosim/twoside","_id":"twoside@0.1.4","dist":{"shasum":"291843ade77896dbae4e1ba68bf96bc566a61227","tarball":"https://registry.npmjs.org/twoside/-/twoside-0.1.4.tgz","integrity":"sha512-eim5q/NP/JH/D0lIahu0b8UQMXxlYRD97/flKM4lFHMMe30TgjuDRFV0ScJ9QJAM20glRaZieqn28BX90PVYlA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDrPZhY7LOl2x2ubO9Zo3610kxaHWhLYtxNf/7Fh11zXAiEA6QUf/nXfa3cJxpbl+Q+dkZPSfkMLoIBoMbSWomUj18U="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"chaosim","email":"simeon.chaos@gmail.com"},"maintainers":[{"name":"chaosim","email":"simeon.chaos@gmail.com"}]},"0.1.5":{"name":"twoside","version":"0.1.5","description":"make module can be used in both server side and client side","author":{"name":"Caoxingming","email":"simeon.chaos@gmail.com","url":"https://github.com/chaosim"},"engines":{"node":"*"},"repository":{"type":"git","url":"https://github.com/chaosim/twoside.git"},"bugs":{"url":"https://github.com/chaosim/twoside/issues"},"licenses":[{"type":"MIT","url":"https://github.com/chaosim/twoside/raw/master/LICENSE"}],"main":"src/twoside.js","scripts":{"test":"node src/nodesample.js"},"homepage":"https://github.com/chaosim/twoside","_id":"twoside@0.1.5","dist":{"shasum":"a7e4463b7dc76b31d11c0882af3097305ceb69df","tarball":"https://registry.npmjs.org/twoside/-/twoside-0.1.5.tgz","integrity":"sha512-Mzk8+IQalO6aMS8cU5qi8sYyc6yFLskr2UIU9JzondrM1tFXr03L//uWFIGKph0oj+kHFyTs8Pw/MxTezyVf0w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDH88mTEvakbbDqwKP2Eg0YRiib/qYV1XalBk4mydOFPAIhAMHAsKenF5oYFp6PXWfJywHXPDm35D+1DoqmDXbii0lM"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"chaosim","email":"simeon.chaos@gmail.com"},"maintainers":[{"name":"chaosim","email":"simeon.chaos@gmail.com"}]},"0.1.6":{"name":"twoside","version":"0.1.6","description":"make module can be used in both server side and client side","author":{"name":"Caoxingming","email":"simeon.chaos@gmail.com","url":"https://github.com/chaosim"},"engines":{"node":"*"},"repository":{"type":"git","url":"https://github.com/chaosim/twoside.git"},"bugs":{"url":"https://github.com/chaosim/twoside/issues"},"licenses":[{"type":"MIT","url":"https://github.com/chaosim/twoside/raw/master/LICENSE"}],"main":"src/twoside.js","scripts":{"test":"node src/nodesample.js"},"homepage":"https://github.com/chaosim/twoside","_id":"twoside@0.1.6","dist":{"shasum":"1d799942b0b3a65e0be6072a892b7f132b14da0d","tarball":"https://registry.npmjs.org/twoside/-/twoside-0.1.6.tgz","integrity":"sha512-WsvHD7NxbBYNxMyvOx4S+hs5rEqPE/foMH72fn8r4FwGTf+0Mx6yTM52eY6AJA7psdTm+jeVJUf3oyfi80+OyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBZ1BfD81vKhNJlKKMVMJEqKjg2SYAsHM02QvJcTaSPwIhAOs8IAtyXxGxrByk6UzazYP8x1m2XkcQSa3Ozys8jqQW"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"chaosim","email":"simeon.chaos@gmail.com"},"maintainers":[{"name":"chaosim","email":"simeon.chaos@gmail.com"}]},"0.1.7":{"name":"twoside","version":"0.1.7","description":"make module can be used in both server side and client side","author":{"name":"Caoxingming","email":"simeon.chaos@gmail.com","url":"https://github.com/chaosim"},"engines":{"node":"*"},"repository":{"type":"git","url":"https://github.com/chaosim/twoside.git"},"bugs":{"url":"https://github.com/chaosim/twoside/issues"},"licenses":[{"type":"MIT","url":"https://github.com/chaosim/twoside/raw/master/LICENSE"}],"main":"src/twoside.js","scripts":{"test":"node src/nodesample.js"},"homepage":"https://github.com/chaosim/twoside","_id":"twoside@0.1.7","dist":{"shasum":"f109a1e0a8168bc419e6ac78c5151ed9d0596c31","tarball":"https://registry.npmjs.org/twoside/-/twoside-0.1.7.tgz","integrity":"sha512-IowzvA9lOSdG6eNPyWuixNymzNRkSrHWDFR0fEnhkAD+YAspwRmXH3fUV9N3XQhsRfWZZh0cascl724/ciSa7g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSp67RboAPK0581i4XR0xOgjtD8tXNSibrWE97DBk4XwIhANqOtPEIYvxccLFJQgK59NpkZAyDipl//4LuWrk0q+Jl"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"chaosim","email":"simeon.chaos@gmail.com"},"maintainers":[{"name":"chaosim","email":"simeon.chaos@gmail.com"}]},"0.1.8":{"name":"twoside","version":"0.1.8","description":"make module can be used in both server side and client side","author":{"name":"Caoxingming","email":"simeon.chaos@gmail.com","url":"https://github.com/chaosim"},"engines":{"node":"*"},"repository":{"type":"git","url":"https://github.com/chaosim/twoside.git"},"bugs":{"url":"https://github.com/chaosim/twoside/issues"},"licenses":[{"type":"MIT","url":"https://github.com/chaosim/twoside/raw/master/LICENSE"}],"main":"dist/twoside.js","scripts":{"test":"node src/nodesample.js"},"dependencies":{},"devDependencies":{"gulp":"*","gulp-clean":"*","gulp-copy":"*","gulp-coffee":"*","coffee-script":"1.7.0","gulp-concat":"*","gulp-closure-compiler":"*","gulp-size":"*","gulp-uglifyjs":"*"},"homepage":"https://github.com/chaosim/twoside","_id":"twoside@0.1.8","dist":{"shasum":"ada10afb9d1f242e4fdafe119a3fec99ab570325","tarball":"https://registry.npmjs.org/twoside/-/twoside-0.1.8.tgz","integrity":"sha512-eoERhz8xo+531asRWfsMT11ld7lrumFm5iHJ95xZoiLPFrlOew51sbhTAkbP2hpQ9tSXYUOQtweJQuLYz9R6PQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPaGELfTcqaGhSUf5piglDnvcKH4gaEjUADcOc+UaquAIhAOsOghf8SVsnISni57jcfOA5mGUKRtp1SGMvcqcZFzjf"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"chaosim","email":"simeon.chaos@gmail.com"},"maintainers":[{"name":"chaosim","email":"simeon.chaos@gmail.com"}]},"0.1.9":{"name":"twoside","version":"0.1.9","description":"make module can be used in both server side and client side","author":{"name":"Caoxingming","email":"simeon.chaos@gmail.com","url":"https://github.com/chaosim"},"engines":{"node":"*"},"repository":{"type":"git","url":"https://github.com/chaosim/twoside.git"},"bugs":{"url":"https://github.com/chaosim/twoside/issues"},"licenses":[{"type":"MIT","url":"https://github.com/chaosim/twoside/raw/master/LICENSE"}],"main":"dist/twoside.js","scripts":{"test":"node src/nodesample.js"},"dependencies":{},"devDependencies":{"gulp":"*","gulp-clean":"*","gulp-copy":"*","gulp-coffee":"*","coffee-script":"1.7.0","gulp-concat":"*","gulp-closure-compiler":"*","gulp-size":"*","gulp-uglifyjs":"*"},"homepage":"https://github.com/chaosim/twoside","_id":"twoside@0.1.9","dist":{"shasum":"27e8f4bcc031a272b3ed8439209412ee9672cf54","tarball":"https://registry.npmjs.org/twoside/-/twoside-0.1.9.tgz","integrity":"sha512-W0bw3t8c7KgirVZOr8Yc5zWQP9SwXIcGnLamKiA4R8ykE4TrTFewOf+fg5InX3/y7zvKK52m5Pb9EDMWGr1eYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG01EQHWpiRx6ajfyYSlwHd7S7FWFUVSNY5GP0YCx4gIAiBXpv+NHzgiJ6TL+WiwtbL1lC9ZhRBoqqGloFIqGpZl2g=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"chaosim","email":"simeon.chaos@gmail.com"},"maintainers":[{"name":"chaosim","email":"simeon.chaos@gmail.com"}]}},"readme":"\r\n### description\r\nmake module can be used in both server side and client side.\r\n\r\n### usage\r\nJust `npm install twoside`, and then copy twoside.js to your folder.\r\n\r\nTo play with gulpjs, please copy gulp-twoside.js to your folder, too.\r\n\r\nUse gulp-twoside.js as a gulpjs plugins to wrap your module code automatically.\r\n\r\nIn browser, just add `<script src=\"path/to/twoside.js\">` before the modules that need exports or require.\r\n\r\nOr wrap the code manually as below:\r\n\r\n```javascript\r\nvar require, exports, module;\r\n(function(require, exports, module){\r\n  if (typeof window==='object'){ var m = twoside('/module1'), exports = m.exports, module = m.module, require = m.module; }\r\n  // wrapped module definition\r\n})(require, exports, module);\r\n```\r\n\r\nIf you prefer coffee-script, just add these lines to your module and indent all of you code:\r\n\r\n```coffee-script\r\n    `var require, exports, module;`\r\n    do (require=require, exports=exports, module=module) ->\r\n      if typeof window=='object' then {require, exports, module} = twoside('/module1')\r\n      your module definition\r\n```\r\n\r\n#### alias for existed module\r\n\r\nFor client side's external module, alias can be added by `twoside.alias(name, object)`. e.g.\r\n\r\n```javascript\r\n   twoside.alias('underscore', _);\r\n```\r\n\r\nsee the source code in twoside.js for more information.\r\n(twoside.js: 100 lines,  twoside.coffee: 70 lines,  gulp-twoside.js: 50 lines).\r\n\r\n### what's new in 0.1.9\r\n  * add pathMap as third argument for gulp-twoside plugin, so that the module name in browser can be renamed, the packages can be reorganized, see src/lib and gulpfile.coffee for examples.\r\n  * the first parameter \"basepath\" of gulp-twoside plugin  add __dirname automatically now.\r\n  * path in `twoside(path)` can be a package name now. \r\n\r\n\r\n### FAQ\r\n**How big is twoside.js?** \r\n* About 1000 bytes after being minified(google-closure-compiler).\r\n\r\n**What does twoside not do?** \r\n* twoside.js is not a loader, please load the module by `<script>` tag or other methods.\r\n* twoside.js does not process cyclic require.\r\n\r\n**Can twoside.js be used with require.js, sea.js, browserify?** \r\n* Perhaps not. I do not test these cases.\r\n\r\n### web sites\r\n  The project's repository is on github <https://github.com/chaosim/twoside>.\r\n\r\n### license\r\nSimplified BSD License, see LICENSE\r\n\r\n### my bower module\r\n  a simple multiple panes splitter for angularjs: https://github.com/chaosim/splitter   `bower install splitter`","maintainers":[{"name":"chaosim","email":"simeon.chaos@gmail.com"}],"time":{"modified":"2022-06-28T00:30:28.045Z","created":"2013-12-03T09:29:30.344Z","0.1.0":"2013-12-03T09:29:32.359Z","0.1.1":"2013-12-03T21:52:18.707Z","0.1.2":"2013-12-07T12:33:01.673Z","0.1.3":"2013-12-08T17:09:05.241Z","0.1.4":"2013-12-15T01:57:18.164Z","0.1.5":"2013-12-15T03:17:44.073Z","0.1.6":"2013-12-21T03:40:45.112Z","0.1.7":"2013-12-27T03:32:46.486Z","0.1.8":"2014-03-06T07:21:46.950Z","0.1.9":"2014-03-07T05:53:25.513Z"},"author":{"name":"Caoxingming","email":"simeon.chaos@gmail.com","url":"https://github.com/chaosim"},"repository":{"type":"git","url":"https://github.com/chaosim/twoside.git"},"homepage":"https://github.com/chaosim/twoside","bugs":{"url":"https://github.com/chaosim/twoside/issues"},"readmeFilename":"README.md"}