{"_id":"Frog","_rev":"3-10ab98e7446e4cbbef4ee1c85d2d8af9","name":"Frog","description":"Provides support for require()'ing Google Dart source files (.dart).","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"Frog","version":"0.1.0","description":"Provides support for require()'ing Google Dart source files (.dart).","keywords":["dart","google","frog","compiler"],"homepage":"https://github.com/kaisellgren/Frog","author":{"name":"Kai Sellgren"},"contributors":[{"name":"Kai Sellgren"}],"bugs":{"url":"https://github.com/kaisellgren/Frog/issues"},"licenses":[{"type":"MIT","url":"http://github.com/kaisellgren/Frog/raw/master/LICENSE"}],"main":"lib/Frog.js","repository":{"type":"git","url":"git://github.com/kaisellgren/Frog.git"},"dependencies":{},"devDependencies":{},"engines":{"node":">=0.6.15"},"_npmUser":{"name":"kaisellgren","email":"kaisellgren@gmail.com"},"_id":"Frog@0.1.0","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"ebe17738227a5a9d96b86c874cb02cff18b41878","tarball":"http://registry.npmjs.org/Frog/-/Frog-0.1.0.tgz"},"maintainers":[{"name":"kaisellgren","email":"kaisellgren@gmail.com"}]}},"readme":"What's Frog?\r\n==\r\nFrog is a NodeJS module that enables Google Dart support. You may now write server-side Dart enabled NodeJS applications.\r\n\r\n## How to install\r\nIt's not yet released, but when it is:\r\n\r\n```\r\nnpm install Frog\r\n```\r\n\r\nFor now, clone the repo.\r\n\r\nYou also need to have Dart SDK installed: http://www.dartlang.org/docs/getting-started/sdk/#download\r\n\r\nMake sure the installation bin folder is in your environment ```$PATH```.\r\n\r\n## Examples\r\n\r\n#####app.js\r\n```javascript\r\n// Include the Frog compiler.\r\nrequire('./../lib/Frog.js');\r\n\r\n// Now just run Dart like a boss.\r\nconsole.log('I am about to run some Dart...');\r\n\r\nrequire('./test.dart');\r\n\r\nconsole.log('I just ran Dart!');\r\n```\r\n#####test.dart\r\n```dart\r\nclass Point {\r\n  Point(this.x, this.y);\r\n\r\n  distanceTo(Point other) {\r\n    var dx = x - other.x;\r\n    var dy = y - other.y;\r\n    return Math.sqrt(dx * dx + dy * dy);\r\n  }\r\n\r\n  var x, y;\r\n}\r\n\r\nmain() {\r\n  Point p = new Point(2, 3);\r\n  Point q = new Point(3, 4);\r\n\r\n  print('distance from p to q = ${p.distanceTo(q)}');\r\n}\r\n```\r\n\r\n#####Run it\r\n```\r\n$ node app.js\r\nI am about to run some Dart...\r\ndistance from p to q = 1.4142135623730951\r\nI just ran Dart!\r\n```\r\n\r\n## Status\r\n\r\nThis project is not yet production ready! It's also quite slow. I'm planning to take another approach to this.","maintainers":[{"name":"kaisellgren","email":"kaisellgren@gmail.com"}],"time":{"modified":"2012-04-21T18:06:23.863Z","created":"2012-04-21T18:06:21.711Z","0.1.0":"2012-04-21T18:06:23.863Z"},"author":{"name":"Kai Sellgren"},"repository":{"type":"git","url":"git://github.com/kaisellgren/Frog.git"}}