{"_id":"than","_rev":"1654367","name":"than","description":"Make everything asynchronous !","dist-tags":{"latest":"0.0.8"},"maintainers":[{"name":"javascript","email":"Array.prototype@gmail.com"}],"time":{"modified":"2026-10-30T18:48:43.000Z","created":"2014-12-21T21:08:45.498Z","0.0.8":"2015-05-01T10:38:23.884Z","0.0.7":"2015-05-01T10:14:17.782Z","0.0.6":"2014-12-23T07:00:23.882Z","0.0.5":"2014-12-22T23:40:38.818Z","0.0.4":"2014-12-21T21:22:58.604Z","0.0.3":"2014-12-21T21:20:31.271Z","0.0.2":"2014-12-21T21:12:38.923Z","0.0.1":"2014-12-21T21:11:41.397Z","0.0.0":"2014-12-21T21:08:45.498Z"},"users":{},"author":{"name":"Khalid REHIOUI","email":"Array.prototype@gmail.com","url":"http://github.com/Javascipt"},"versions":{"0.0.8":{"name":"than","version":"0.0.8","description":"Make everything asynchronous !","main":"script.js","keywords":["async","than","callback"],"author":{"name":"Khalid REHIOUI","email":"Array.prototype@gmail.com","url":"http://github.com/Javascipt"},"license":"MIT","_id":"than@0.0.8","scripts":{},"_shasum":"be00b8d721389ad3cafe94ba11f024f605317a06","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"javascript","email":"Array.prototype@gmail.com"},"maintainers":[{"name":"javascript","email":"Array.prototype@gmail.com"}],"dist":{"shasum":"be00b8d721389ad3cafe94ba11f024f605317a06","tarball":"http://registry-npm.ywwl.com/than/download/than-0.0.8.tgz","integrity":"sha512-guyrNnefq1LVRvQANkAtUCYx4ym8pVKCudSZxCjcNklDBOccoxzHgmjxv9oLp68yU84DScWRCoLmEfMtJnqlBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEBpmSkyeO/GEDHSIfpO4NT6Zd/UGOp5xxjZJEqEubOQIhAKyXE+MnOCItyWAG8u4v1ols7n7uZxXCPUgT3FGKORa5"}],"size":4368,"noattachment":false,"key":"/than/-/than-0.0.8.tgz"},"publish_time":1430476703884,"_cnpm_publish_time":1430476703884},"0.0.7":{"name":"than","version":"0.0.7","description":"Make everything asynchronous !","main":"script.js","keywords":["async","than","callback"],"author":{"name":"Khalid REHIOUI","email":"Array.prototype@gmail.com","url":"http://github.com/Javascipt"},"license":"MIT","_id":"than@0.0.7","scripts":{},"_shasum":"efbaf9e254d8eed59a1a0a9b0b2ea981b658cc1d","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"javascript","email":"Array.prototype@gmail.com"},"maintainers":[{"name":"javascript","email":"Array.prototype@gmail.com"}],"dist":{"shasum":"efbaf9e254d8eed59a1a0a9b0b2ea981b658cc1d","tarball":"http://registry-npm.ywwl.com/than/download/than-0.0.7.tgz","integrity":"sha512-+6RBwMBrqydg9oHf3qiNkjFZ1rOSbqufgcmbBBdp3BwNKLtBymqBibVWv4AEkKF/SCZyDzrINB63CbcMMZ3xLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuowJVcb26Bs6HkZfYWv17k7uVt1Q+vLh9YvD7zyGAPgIgakeVUS3L+uYMn2WgUbDe0LIGMGQ+WY3eLkw+ubxQKGY="}],"size":4424,"noattachment":false,"key":"/than/-/than-0.0.7.tgz"},"publish_time":1430475257782,"_cnpm_publish_time":1430475257782},"0.0.6":{"name":"than","version":"0.0.6","description":"Make everything asynchronous !","main":"script.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["async","than","callback"],"author":{"name":"Khalid REHIOUI","email":"Array.prototype@gmail.com","url":"http://github.com/Javascipt"},"license":"MIT","_id":"than@0.0.6","_shasum":"3a6ff7f2f7a57196c107b67afa77721b69ce5545","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"javascript","email":"Array.prototype@gmail.com"},"maintainers":[{"name":"javascript","email":"Array.prototype@gmail.com"}],"dist":{"shasum":"3a6ff7f2f7a57196c107b67afa77721b69ce5545","tarball":"http://registry-npm.ywwl.com/than/download/than-0.0.6.tgz","integrity":"sha512-f4l6aW1DrmaFLAHLAY15g5ovV0sK66N4QDE9Blliw9gEsrkKrYbXD92ve6NzYPZ7N4NDi0waGPVnb1RAr6kY7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDs6h5YK2A7GH+YjB0X9Sfka5k260LE6s/aUkuCYttgxwIhAMHOGPYUzBACRIr/Rhf4AgYZn6jKR1W1Lwd5hz9qrYUM"}],"size":4491,"noattachment":false,"key":"/than/-/than-0.0.6.tgz"},"publish_time":1419318023882,"_cnpm_publish_time":1419318023882},"0.0.5":{"name":"than","version":"0.0.5","description":"Make everything asynchronous !","main":"script.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["async","than","callback"],"author":{"name":"Khalid REHIOUI","email":"Array.prototype@gmail.com","url":"http://github.com/Javascipt"},"license":"MIT","_id":"than@0.0.5","_shasum":"6fe7b9296a0e55f0d9bade23389afdffa765d889","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"javascript","email":"Array.prototype@gmail.com"},"maintainers":[{"name":"javascript","email":"Array.prototype@gmail.com"}],"dist":{"shasum":"6fe7b9296a0e55f0d9bade23389afdffa765d889","tarball":"http://registry-npm.ywwl.com/than/download/than-0.0.5.tgz","integrity":"sha512-UzNee6k41UBrw3wPUTMq8wsGdEoVUZyAFFgHC01WEe6MvjbwEJbcYU+DWrJuiUNdN9iAtRkH6ZaIO8xYOt4hbQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH0VAIsSl9njYoZCDUjfBI2uyEtGItwMWYTOvX9BQWeDAiEAuE6QliraE++bIXd/f9xCfglFPM/hRp32h4xBLtjGHSk="}],"size":4463,"noattachment":false,"key":"/than/-/than-0.0.5.tgz"},"publish_time":1419291638818,"_cnpm_publish_time":1419291638818},"0.0.4":{"name":"than","version":"0.0.4","description":"Make everything asynchronous !","main":"script.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["async","than","callback"],"author":{"name":"Khalid REHIOUI","email":"Array.prototype@gmail.com","url":"http://github.com/Javascipt"},"license":"MIT","_id":"than@0.0.4","_shasum":"00e3e1326a6528a74d6857a233630efa98577a8c","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"javascript","email":"Array.prototype@gmail.com"},"maintainers":[{"name":"javascript","email":"Array.prototype@gmail.com"}],"dist":{"shasum":"00e3e1326a6528a74d6857a233630efa98577a8c","tarball":"http://registry-npm.ywwl.com/than/download/than-0.0.4.tgz","integrity":"sha512-pXKFk8LrAQI0O7pTxxi5hh+KecL68bF96Ysqe+fB0Bq0NmxU09KXR1/bcshlv6ICfUxOlvYP6W1RC4grYH6TmQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB90XYVnG2XiEZr3+vJhDOyb222w8WpJz7jxpPMuPCj+AiBJwDTgfZx0xwpH4Q3f35Vn4WjXwR5w2tYUBM1WFZmH4A=="}],"size":4332,"noattachment":false,"key":"/than/-/than-0.0.4.tgz"},"publish_time":1419196978604,"_cnpm_publish_time":1419196978604},"0.0.3":{"name":"than","version":"0.0.3","description":"Make everything asynchronous !","main":"script.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["async","than","callback"],"author":{"name":"Khalid REHIOUI","email":"Array.prototype@gmail.com","url":"http://github.com/Javascipt"},"license":"MIT","_id":"than@0.0.3","_shasum":"4624df275109d9fbc54dbffcfa0b7c48f5951c32","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"javascript","email":"Array.prototype@gmail.com"},"maintainers":[{"name":"javascript","email":"Array.prototype@gmail.com"}],"dist":{"shasum":"4624df275109d9fbc54dbffcfa0b7c48f5951c32","tarball":"http://registry-npm.ywwl.com/than/download/than-0.0.3.tgz","integrity":"sha512-6DGx/iObqE8DrXDScyY/ZGqZqomj8JK4guYkIG8KndnMqIqPCSVpAzxb3mKPq1ZyQNF8InvjTYGtaK1uQstj3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWG4TDaaiJytpOPhqhhCZGVp7V3mkMawdT1IOH4gEKUwIgMfLyKOEBcwotlcA/DGD6x5J+fTK5Vd8IwPQfC0Jg0HI="}],"size":4313,"noattachment":false,"key":"/than/-/than-0.0.3.tgz"},"publish_time":1419196831271,"_cnpm_publish_time":1419196831271},"0.0.2":{"name":"than","version":"0.0.2","description":"Make everything asynchronous !","main":"script.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["async","than","callback"],"author":{"name":"Khalid REHIOUI","email":"Array.prototype@gmail.com","url":"http://github.com/Javascipt"},"license":"MIT","_id":"than@0.0.2","_shasum":"37208eeea9369377f6385808cc618d0a66e86762","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"javascript","email":"Array.prototype@gmail.com"},"maintainers":[{"name":"javascript","email":"Array.prototype@gmail.com"}],"dist":{"shasum":"37208eeea9369377f6385808cc618d0a66e86762","tarball":"http://registry-npm.ywwl.com/than/download/than-0.0.2.tgz","integrity":"sha512-SZNo50JBneaCalnlDqZLpy8yKMmsupDIpfpl5CQhleewEacXj4jXTlEgWl8Hw01+6VMPIrA3fbG3pVL/bwE4tA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG87RjVp7UK50FuSZsDvYGzmezhctBr//P9axcGjxaQcAiAuapgiQksAP0YdlLk4hak25NRcvv4VfFR3kVZDRt5T+A=="}],"size":4167,"noattachment":false,"key":"/than/-/than-0.0.2.tgz"},"publish_time":1419196358923,"_cnpm_publish_time":1419196358923},"0.0.1":{"name":"than","version":"0.0.1","description":"Make everything asynchronous !","main":"script.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["async","than","callback"],"author":{"name":"Khalid REHIOUI","email":"Array.prototype@gmail.com","url":"http://github.com/Javascipt"},"license":"MIT","_id":"than@0.0.1","_shasum":"f6bc215435ddd17a2aa0a0598d308b90f511e87d","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"javascript","email":"Array.prototype@gmail.com"},"maintainers":[{"name":"javascript","email":"Array.prototype@gmail.com"}],"dist":{"shasum":"f6bc215435ddd17a2aa0a0598d308b90f511e87d","tarball":"http://registry-npm.ywwl.com/than/download/than-0.0.1.tgz","integrity":"sha512-lMn6eJEsP6xQcFupm48h0uJEVSMj5zi3BJJqAoEKCbrvAKTrOBJ4VxGCKE8F7bI/BlxPwohMNyJgUSMavdGJAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDg6MyQTnVe3OhAywJwmoX8044n3+iF/k1xJejN9cTHvgIhAIbzvWP83UnGYpY5UbjtJNBpOHdaUdK716m1wUfOfCK8"}],"size":4172,"noattachment":false,"key":"/than/-/than-0.0.1.tgz"},"publish_time":1419196301397,"_cnpm_publish_time":1419196301397},"0.0.0":{"name":"than","version":"0.0.0","description":"Make everything asynchronous !","main":"script.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["async","than","callback"],"author":{"name":"Khalid REHIOUI","email":"Array.prototype@gmail.com","url":"http://github.com/Javascipt"},"license":"MIT","_id":"than@0.0.0","_shasum":"a82d6ba122a4e4942f62e72d9b4553043e74a9c0","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"javascript","email":"Array.prototype@gmail.com"},"maintainers":[{"name":"javascript","email":"Array.prototype@gmail.com"}],"dist":{"shasum":"a82d6ba122a4e4942f62e72d9b4553043e74a9c0","tarball":"http://registry-npm.ywwl.com/than/download/than-0.0.0.tgz","integrity":"sha512-5VpooqC4FG7z8LqUQrDwX2aXioafWmssEjKFaxB5ZDdoef5J7wF4lwX0tmDbxDBFnh/zDG/Bz96XXPNdRKtPMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGLHI+wBg/PPSMPAAhUWlIEJl7cEiqYEvFDmSZIelRF7AiBtw2/pjY4NPJ5NU6DReF504BT2G4xS2FpnP3hEOxKN4A=="}],"size":4099,"noattachment":false,"key":"/than/-/than-0.0.0.tgz"},"publish_time":1419196125498,"_cnpm_publish_time":1419196125498}},"readme":"# Than\r\n\r\nMake your functions asynchronous by using the `than` function !!!\r\n\r\n## Installation\r\n\r\nUse the npm command\r\n\r\n    npm install than\r\n\r\n## Usage\r\n\r\nThis package adds a prototype to `Function`, to use it, you need first to require it :\r\n\r\n    require('than');\r\n\r\n## Example\r\n\r\nHere is an example showing you how this `than` function can be used\r\n\r\nLet's say you have a function with blocking code\r\n\r\n    function calculate(a, b) {\r\n        /*\r\n            Your code that might take too long to execute !\r\n         */\r\n\r\n        return a + b;\r\n    }\r\n\r\nSo, instead of calling the function directly by passing two arguments, you can pass these arguments to the `than` function and a callBack that receives the result of the main function.\r\n\r\n    console.log(\"Do something\");\r\n\r\n    calculate.than(1, 2, function(result) {\r\n        console.log(\"Then display the result : \", result);\r\n    });\r\n\r\n    console.log(\"Do other thing\");\r\n\r\nIf the `calculate` function takes too long to finish its execution, the output of the code above would be :\r\n\r\n    Do something\r\n    Do other thing\r\n    Then display the result : 3","_attachments":{},"license":"MIT"}