{"_id":"safe_datejs","_rev":"6-5abffba7cc1f41a9acbdecfe8b6443e1","name":"safe_datejs","description":"A safe(node.js VM isolated) wrapper around datejs.com library. Safe to be used with mongoose","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"safe_datejs","description":"A safe(node.js VM isolated) wrapper around datejs.com library. Safe to be used with mongoose","version":"0.0.1","homepage":"http://www.datejs.com","author":{"name":"Firebase.co","email":"npm@firebase.co","url":"http://www.firebase.co"},"main":"./index.js","repository":{"type":"git","url":"git://github.com/firebaseco/safe_datejs.git"},"bugs":{"email":"npm@firebase.co","url":"https://github.com/firebaseco/safe_datejs/issues"},"keywords":["safe","date.js","datejs","date"],"contributors":[{"name":"Johan Hernandez","email":"johan@firebase.co"}],"devDependencies":{"vows":">= 0.5.11"},"engines":{"node":">= 0.4.5"},"scripts":{"test":"make"},"licenses":[{"type":"MIT","url":"https://github.com/firebaseco/safe_datejs/blob/master/LICENSE"}],"_npmUser":{"name":"firebaseco","email":"npm@firebase.co"},"_id":"safe_datejs@0.0.1","dependencies":{},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.6.3","_defaultsLoaded":true,"dist":{"shasum":"e4d9e8cdf66f6dfb305171c063b0b07a94f38648","tarball":"https://registry.npmjs.org/safe_datejs/-/safe_datejs-0.0.1.tgz","integrity":"sha512-X7BlcJ1jKnf+tAgvGA6dJN/i1mh/z6qd3q/4YkMoKn/rGsW3Gj9yQe8aVjXne9K4Q+fkf4DrzUCNR7eYbUeYYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB8/JzaHy38Ilvahcay34h9a/ekJIT6+aavpB2C6p+UEAiBsmXBmieuz0VOeXKIeEhgDRHJjG2OEJWpjTI1DSNvLog=="}]},"maintainers":[{"name":"firebaseco","email":"npm@firebase.co"}]}},"readme":"# Safe Date.js\n\nAn special wrapper for [the Date.js library](http://www.datejs.com/) that loads the Date.js Date extensions into an special type giving you access to the Date.js magic without screwing `Date` type of the Node.js application. It's safe to be used with type sensitive modules like [Mongoose.js](http://mongoosejs.com/).\n\nSee [the datejs site](http://www.datejs.com/) for more information.\n\n\n## Installation\n\n    npm install safe_datejs\n\n## Usage\n\nUse the function `AsDateJs` to convert your date to Date.js and use `AsRegularDate` when you are finished working with  Date.js. Both functions will return shallow copies.\n\n## Example\n\n    var datejs = require('safe_datejs');\n\n\tvar today = new Date(2011, 11, 12, 0, 0, 0, 0);\n\tvar wrappedToday = today.AsDateJs();\n\tconsole.log('Is today:', wrappedToday.is().today());\n\t\n\tvar tomorrow = wrappedToday.clone().add({days:1});\n\tconsole.log('Wrapped Tomorrow:', tomorrow.toString(), 'is date regular Date: ', (tomorrow instanceof Date));\n\t\n\tvar unwrappedTomorrow = tomorrow.AsRegularDate(); \n\tconsole.log('Unwrapped Tomorrow:', unwrappedTomorrow.toString(), 'is date regular Date: ', (unwrappedTomorrow instanceof Date));\n\n### Result\n\n    Is today: false\n\tWrapped Tomorrow: Tue Dec 13 2011 00:00:00 GMT-0500 (COT) is date regular Date:  false\n\tUnwrapped Tomorrow: Tue Dec 13 2011 00:00:00 GMT-0500 (COT) is date regular Date:  true\n\n## Cloning the Repository\n\n    git clone https://github.com/firebaseco/safe_datejs.git\n\n## Tests\n\n    npm test\n\n## Author\n\n* Johan (author). Email: *johan@firebase.co*\n\n## License\n\nMIT. Check the [the datejs site](http://www.datejs.com/)","maintainers":[{"name":"firebaseco","email":"npm@firebase.co"}],"time":{"modified":"2022-06-26T15:20:59.607Z","created":"2011-12-13T06:17:05.132Z","0.0.1":"2011-12-13T06:17:06.754Z"},"author":{"name":"Firebase.co","email":"npm@firebase.co","url":"http://www.firebase.co"},"repository":{"type":"git","url":"git://github.com/firebaseco/safe_datejs.git"},"users":{"pid":true}}