{"versions":{"0.0.2":{"name":"astral-angular-annotate","version":"0.0.2","description":"AngularJS DI annotation pass for astral","main":"annotate.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/btford/astral-angular-annotate.git"},"keywords":["astral","angular"],"author":{"name":"Brian Ford"},"license":"MIT","readmeFilename":"README.md","dependencies":{"astral-pass":"~0.1.0","clone":"~0.1.9"},"bugs":{"url":"https://github.com/btford/astral-angular-annotate/issues"},"_id":"astral-angular-annotate@0.0.2","dist":{"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/astral-angular-annotate/-/astral-angular-annotate-0.0.2.tgz","shasum":"23894d734818840834cd3573a54dae356632a189","size":4469,"noattachment":false,"integrity":"sha512-8IHqHPv0Pr68Ityr/faRLIjExFdaTYQGgIkz2Yw2dJtc/zWCmEqkytTxFcBz7/A7CNFRo8G5KQnXRqW4tANDLA=="},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"anonymous","email":"briantford@gmail.com"},"maintainers":[{"name":"anonymous","email":"briantford@gmail.com"}],"directories":{},"publish_time":1372724693856,"_hasShrinkwrap":false,"_cnpm_publish_time":1372724693856,"_cnpmcore_publish_time":"2021-12-18T19:14:11.324Z","contributors":[]},"0.0.1":{"name":"astral-angular-annotate","version":"0.0.1","description":"AngularJS DI annotation pass for astral","main":"annotate.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/btford/astral-angular-annotate.git"},"keywords":["astral","angular"],"author":{"name":"Brian Ford"},"license":"MIT","readmeFilename":"README.md","dependencies":{"astral-pass":"~0.1.0","clone":"~0.1.9"},"bugs":{"url":"https://github.com/btford/astral-angular-annotate/issues"},"_id":"astral-angular-annotate@0.0.1","dist":{"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/astral-angular-annotate/-/astral-angular-annotate-0.0.1.tgz","shasum":"8dfed9b2e95406d7b4dbbbc8439d03d4660855ca","size":4400,"noattachment":false,"integrity":"sha512-JL1kMONfa4i38FXyvPpZox736r+zZ4UyJ6I48tSMz3eC+snF8ea/Xbe/6HrNYIpIprArmscGLX5uC0HZ6U8bxw=="},"_from":".","_npmVersion":"1.2.24","_npmUser":{"name":"anonymous","email":"briantford@gmail.com"},"maintainers":[{"name":"anonymous","email":"briantford@gmail.com"}],"directories":{},"publish_time":1370442300477,"_hasShrinkwrap":false,"_cnpm_publish_time":1370442300477,"_cnpmcore_publish_time":"2021-12-18T19:14:11.695Z","contributors":[]}},"dist-tags":{"latest":"0.0.2"},"name":"astral-angular-annotate","time":{"created":"2022-01-27T00:34:37.601Z","modified":"2023-07-30T13:55:55.445Z","0.0.2":"2013-07-02T00:24:53.856Z","0.0.1":"2013-06-05T14:25:00.477Z"},"readme":"# Astral Angular Annotator\n\nA pass for [Astral](https://github.com/btford/astral) to generate [AngularJS](http://angularjs.org) [DI annotations](TODO: find docs) automatically.\n\nFor a tool CLI, see `[ngmin](TODO: link).\n\n## Usage\n\nBelow is an example parsing, annotating, and generating JavaScript code. Note that this requires the `esprima`, `escodegen`, `astral`, and `astral-angular-annotator` npm packages.\n\n```javascript\nvar esprima = require('esprima'),\n  escodegen = require('escodegen'),\n  astral = require('astral')();\n\n// register angular annotator pass\nrequire('astral-angular-annotator')(astral);\n\nvar inputCode = \"angular.module('myMod').controller('FooCtrl', function ($scope) {\" +\n\"  // ...\" +\n\"});\";\n\nvar ast = esprima.parse(inputCode, {\n  tolerant: true\n});\n\nastral.run(ast);\n\nvar generatedCode = escodegen.generate(ast, {\n  format: {\n    indent: {\n      style: '  '\n    }\n  }\n});\n\nconsole.log(generatedCode);\n\n// logs:\n//\n// angular.module('myMod').controller('FooCtrl', ['$scope', function ($scope) {\n//   // ...\n// });\n\n```\n\n## API\n\nYou can also access each of the individual passes like this:\n\n```\n\n```\n\nThis might be handy for more fine-tuned control.\n\n## License\nMIT","users":{}}