{"_id":"code-context","_rev":"101687","name":"code-context","description":"Parse a string of javascript to determine the context for functions, variables and comments based on the code that follows.","dist-tags":{"latest":"0.5.3"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:35:32.000Z","created":"2014-08-09T06:28:26.451Z","0.5.3":"2015-08-01T05:15:15.641Z","0.5.2":"2015-08-01T04:42:00.650Z","0.5.1":"2015-05-25T15:41:49.248Z","0.5.0":"2015-03-11T00:32:59.193Z","0.4.1":"2015-02-13T19:20:46.308Z","0.4.0":"2015-02-13T19:16:38.034Z","0.3.0":"2014-11-19T13:23:16.832Z","0.2.3":"2014-09-24T08:49:53.326Z","0.2.2":"2014-09-24T07:05:38.353Z","0.2.1":"2014-08-25T09:50:07.215Z","0.2.0":"2014-08-25T05:51:53.947Z","0.1.1":"2014-08-09T18:39:58.115Z","0.1.0":"2014-08-09T06:28:26.451Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/code-context.git"},"versions":{"0.5.3":{"name":"code-context","description":"Parse a string of javascript to determine the context for functions, variables and comments based on the code that follows.","version":"0.5.3","homepage":"https://github.com/jonschlinkert/code-context","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/code-context.git"},"bugs":{"url":"https://github.com/jonschlinkert/code-context/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"parse-code-context":"^0.1.3"},"devDependencies":{"fs-utils":"^0.4.3","mocha":"*","should":"^4.0.4"},"keywords":["code","comment","context","declaration","docs","documentation","expression","extract","function","javascript","js","method","parse","property","prototype","statement"],"gitHead":"995fb6e2c52fc6c07519896f117be8f843af0d65","_id":"code-context@0.5.3","_shasum":"e368c7bd247d3ac71100d91b5fd02e4e66fa9022","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"e368c7bd247d3ac71100d91b5fd02e4e66fa9022","size":2397,"noattachment":false,"key":"/code-context/-/code-context-0.5.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/code-context/download/code-context-0.5.3.tgz"},"directories":{},"publish_time":1438406115641,"_cnpm_publish_time":1438406115641,"_hasShrinkwrap":false},"0.5.2":{"name":"code-context","description":"Parse a string of javascript to determine the context for functions, variables and comments based on the code that follows.","version":"0.5.2","homepage":"https://github.com/jonschlinkert/code-context","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/code-context.git"},"bugs":{"url":"https://github.com/jonschlinkert/code-context/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"parse-code-context":"^0.1.3"},"devDependencies":{"fs-utils":"^0.4.3","mocha":"*","should":"^4.0.4"},"keywords":["code","comment","context","declaration","docs","documentation","expression","extract","function","javascript","js","method","parse","property","prototype","statement"],"gitHead":"8c09467e256f84b27f4aa9519717d9af43854c7c","_id":"code-context@0.5.2","_shasum":"4c49eb7e10ffba82163ecab99cf750e04256c6c3","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"4c49eb7e10ffba82163ecab99cf750e04256c6c3","size":2386,"noattachment":false,"key":"/code-context/-/code-context-0.5.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/code-context/download/code-context-0.5.2.tgz"},"directories":{},"publish_time":1438404120650,"_cnpm_publish_time":1438404120650,"_hasShrinkwrap":false},"0.5.1":{"name":"code-context","description":"Parse a string of javascript to determine the context for functions, variables and comments based on the code that follows.","version":"0.5.1","homepage":"https://github.com/jonschlinkert/code-context","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/code-context.git"},"bugs":{"url":"https://github.com/jonschlinkert/code-context/issues"},"license":"MIT","index":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"parse-code-context":"^0.1.3"},"devDependencies":{"fs-utils":"^0.4.3","mocha":"*","should":"^4.0.4"},"keywords":["code","comment","context","declaration","docs","documentation","expression","extract","function","javascript","js","method","parse","property","prototype","statement"],"gitHead":"0bc11ce3f51617fb8e065805b756999c7f5851ae","_id":"code-context@0.5.1","_shasum":"485830deca673db85480c00a1cdf10f07b309c00","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"485830deca673db85480c00a1cdf10f07b309c00","size":22364,"noattachment":false,"key":"/code-context/-/code-context-0.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/code-context/download/code-context-0.5.1.tgz"},"directories":{},"publish_time":1432568509248,"_cnpm_publish_time":1432568509248,"_hasShrinkwrap":false},"0.5.0":{"name":"code-context","description":"Parse a string of javascript to determine the context for functions, variables and comments based on the code that follows.","version":"0.5.0","homepage":"https://github.com/jonschlinkert/code-context","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/code-context.git"},"bugs":{"url":"https://github.com/jonschlinkert/code-context/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/code-context/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"parse-code-context":"^0.1.3"},"devDependencies":{"fs-utils":"^0.4.3","mocha":"*","should":"^4.0.4"},"keywords":["code","comment","context","declaration","docs","documentation","expression","extract","function","javascript","js","method","parse","property","prototype","statement"],"index":["index.js"],"gitHead":"47c47bfa3b91138bd85a5f7f0625645b8c55a37d","_id":"code-context@0.5.0","_shasum":"026e4ca0cd918556b4ae7af2c560ee3bb417b691","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"026e4ca0cd918556b4ae7af2c560ee3bb417b691","size":2149,"noattachment":false,"key":"/code-context/-/code-context-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/code-context/download/code-context-0.5.0.tgz"},"publish_time":1426033979193,"_cnpm_publish_time":1426033979193,"_hasShrinkwrap":false},"0.4.1":{"name":"code-context","description":"Parse a string of javascript to determine the context for functions, variables and comments based on the code that follows.","version":"0.4.1","homepage":"https://github.com/jonschlinkert/code-context","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/code-context.git"},"bugs":{"url":"https://github.com/jonschlinkert/code-context/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/code-context/blob/master/LICENSE"}],"index":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","lint":"deps -e test,fixtures && verb"},"devDependencies":{"fs-utils":"^0.4.3","mocha":"*","should":"^4.0.4"},"dependencies":{"parse-code-context":"^0.1.3"},"keywords":["code","comment","context","declaration","docs","documentation","expression","extract","function","javascript","js","method","parse","property","prototype","statement"],"gitHead":"f53ca4beba60531fd59ab1638fc688245f4fe458","_id":"code-context@0.4.1","_shasum":"d7f4d1a40e22e1a83a77324e9815f39e63ecea31","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"d7f4d1a40e22e1a83a77324e9815f39e63ecea31","size":21771,"noattachment":false,"key":"/code-context/-/code-context-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/code-context/download/code-context-0.4.1.tgz"},"directories":{},"publish_time":1423855246308,"_cnpm_publish_time":1423855246308,"_hasShrinkwrap":false},"0.4.0":{"name":"code-context","description":"Parse a string of javascript to determine the context for functions, variables and comments based on the code that follows.","version":"0.4.0","homepage":"https://github.com/jonschlinkert/code-context","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/code-context.git"},"bugs":{"url":"https://github.com/jonschlinkert/code-context/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/code-context/blob/master/LICENSE"}],"index":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","lint":"deps -e test,fixtures && verb"},"devDependencies":{"fs-utils":"^0.4.3","mocha":"*","should":"^4.0.4"},"dependencies":{"parse-code-context":"^0.1.1"},"keywords":["code","comment","context","declaration","docs","documentation","expression","extract","function","javascript","js","method","parse","property","prototype","statement"],"gitHead":"6d85c95869b9f8d162afea36cc3b8598fd21fc3f","_id":"code-context@0.4.0","_shasum":"ddda44dbcd387f52a8b0901c18e5a50762a39bb9","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ddda44dbcd387f52a8b0901c18e5a50762a39bb9","size":21772,"noattachment":false,"key":"/code-context/-/code-context-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/code-context/download/code-context-0.4.0.tgz"},"directories":{},"publish_time":1423854998034,"_cnpm_publish_time":1423854998034,"_hasShrinkwrap":false},"0.3.0":{"name":"code-context","description":"Parses a string of javascript to determine the context for functions, variables and comments based on the code that follows.","version":"0.3.0","homepage":"https://github.com/jonschlinkert/code-context","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/code-context.git"},"bugs":{"url":"https://github.com/jonschlinkert/code-context/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/code-context/blob/master/LICENSE-MIT"}],"keywords":["code","comment","context","declaration","docs","documentation","expression","extract","function","javascript","js","method","parse","property","prototype","statement"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"fs-utils":"^0.4.3","mocha":"*","should":"^4.0.4"},"dependencies":{"extract-comments":"^0.4.1"},"_id":"code-context@0.3.0","_shasum":"c0c609aca37c5bf967c63375d052544a8d3fd8a1","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"c0c609aca37c5bf967c63375d052544a8d3fd8a1","size":26765,"noattachment":false,"key":"/code-context/-/code-context-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/code-context/download/code-context-0.3.0.tgz"},"directories":{},"publish_time":1416403396832,"_cnpm_publish_time":1416403396832,"_hasShrinkwrap":false},"0.2.3":{"name":"code-context","description":"Parses the context from a string of javascript to determine the context for functions, variables and comments based on its code.","version":"0.2.3","homepage":"https://github.com/jonschlinkert/code-context","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/code-context.git"},"bugs":{"url":"https://github.com/jonschlinkert/code-context/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/code-context/blob/master/LICENSE-MIT"}],"keywords":["code","comment","context","declaration","docs","documentation","expression","extract","function","javascript","js","method","parse","property","prototype","statement"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"fs-utils":"^0.4.3","mocha":"*","should":"^4.0.4","verb":">= 0.2.6"},"dependencies":{"extract-comments":"^0.4.1"},"_id":"code-context@0.2.3","_shasum":"231cbf5576590ac35f397c1b612d2e364890ad5e","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"231cbf5576590ac35f397c1b612d2e364890ad5e","size":26367,"noattachment":false,"key":"/code-context/-/code-context-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/code-context/download/code-context-0.2.3.tgz"},"directories":{},"publish_time":1411548593326,"_cnpm_publish_time":1411548593326,"_hasShrinkwrap":false},"0.2.2":{"name":"code-context","description":"Parses the context from a string of javascript to determine the context for functions, variables and comments based on its code.","version":"0.2.2","homepage":"https://github.com/jonschlinkert/code-context","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/code-context.git"},"bugs":{"url":"https://github.com/jonschlinkert/code-context/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/code-context/blob/master/LICENSE-MIT"}],"keywords":["code","comment","context","declaration","docs","documentation","expression","extract","function","javascript","js","method","parse","property","prototype","statement"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"fs-utils":"^0.4.3","mocha":"*","should":"^4.0.4","verb":">= 0.2.6"},"dependencies":{"extract-comments":"^0.4.0"},"_id":"code-context@0.2.2","_shasum":"46dcfbf7bbebdd2899f109a07f267509155cffcd","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"46dcfbf7bbebdd2899f109a07f267509155cffcd","size":26934,"noattachment":false,"key":"/code-context/-/code-context-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/code-context/download/code-context-0.2.2.tgz"},"directories":{},"publish_time":1411542338353,"_cnpm_publish_time":1411542338353,"_hasShrinkwrap":false},"0.2.1":{"name":"code-context","description":"Parses the context from a string of javascript to determine the context for functions, variables and comments based on its code.","version":"0.2.1","homepage":"https://github.com/jonschlinkert/code-context","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/code-context.git"},"bugs":{"url":"https://github.com/jonschlinkert/code-context/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/code-context/blob/master/LICENSE-MIT"}],"keywords":["code","comment","context","declaration","docs","documentation","expression","extract","function","javascript","js","method","parse","property","prototype","statement"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":">= 0.2.6"},"dependencies":{"line-count":"^0.1.0"},"_id":"code-context@0.2.1","_shasum":"f496747de36235d36b6b0162b67fb507754ab091","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"f496747de36235d36b6b0162b67fb507754ab091","size":26970,"noattachment":false,"key":"/code-context/-/code-context-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/code-context/download/code-context-0.2.1.tgz"},"directories":{},"publish_time":1408960207215,"_cnpm_publish_time":1408960207215,"_hasShrinkwrap":false},"0.2.0":{"name":"code-context","description":"Parses the context from a string of javascript to determine the context for functions, variables and comments based on its code.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/code-context","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/code-context.git"},"bugs":{"url":"https://github.com/jonschlinkert/code-context/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/code-context/blob/master/LICENSE-MIT"}],"keywords":["code","comment","context","declaration","docs","documentation","expression","extract","function","javascript","js","method","parse","property","prototype","statement"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":">= 0.2.6"},"dependencies":{"line-count":"^0.1.0"},"_id":"code-context@0.2.0","_shasum":"d83f4f353c1d2c919a23124f7904906ef3593bce","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"d83f4f353c1d2c919a23124f7904906ef3593bce","size":33009,"noattachment":false,"key":"/code-context/-/code-context-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/code-context/download/code-context-0.2.0.tgz"},"directories":{},"publish_time":1408945913947,"_cnpm_publish_time":1408945913947,"_hasShrinkwrap":false},"0.1.1":{"name":"code-context","description":"Parses the context from a string of javascript to determine the context for functions, variables and comments based on its code.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/code-context","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/code-context.git"},"bugs":{"url":"https://github.com/jonschlinkert/code-context/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/code-context/blob/master/LICENSE-MIT"}],"keywords":["code","comment","context","declaration","docs","documentation","expression","function","method","property","prototype","statement"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"fs-utils":"^0.4.3","mocha":"*","should":"^4.0.4","verb":">= 0.2.6"},"_id":"code-context@0.1.1","_shasum":"e5075ca09833a7dc4fe7a37816bcca0aabddb826","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"e5075ca09833a7dc4fe7a37816bcca0aabddb826","size":19950,"noattachment":false,"key":"/code-context/-/code-context-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/code-context/download/code-context-0.1.1.tgz"},"directories":{},"publish_time":1407609598115,"_cnpm_publish_time":1407609598115,"_hasShrinkwrap":false},"0.1.0":{"name":"code-context","description":"Parses the context from a string of javascript to determine the context for a comment based on it's code.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/code-context","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/code-context.git"},"bugs":{"url":"https://github.com/jonschlinkert/code-context/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/code-context/blob/master/LICENSE-MIT"}],"keywords":["code","comment","context","declaration","docs","documentation","expression","function","method","property","prototype","statement"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":">= 0.2.6"},"_id":"code-context@0.1.0","_shasum":"15d8b1aedae06721c81db7d3b90ad0951ee60a5a","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"15d8b1aedae06721c81db7d3b90ad0951ee60a5a","size":7001,"noattachment":false,"key":"/code-context/-/code-context-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/code-context/download/code-context-0.1.0.tgz"},"directories":{},"publish_time":1407565706451,"_cnpm_publish_time":1407565706451,"_hasShrinkwrap":false}},"readme":"# code-context [![NPM version](https://badge.fury.io/js/code-context.svg)](http://badge.fury.io/js/code-context)  [![Build Status](https://travis-ci.org/jonschlinkert/code-context.svg)](https://travis-ci.org/jonschlinkert/code-context)\n\n> Parse a string of javascript to determine the context for functions, variables and comments based on the code that follows.\n\n**Currently supports:**\n\n* code comments\n* function statements\n* function expressions\n* prototype methods\n* prototype properties\n* methods\n* properties\n* declarations\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i code-context --save\n```\n\n## Usage\n\n```js\nvar parseContext = require('code-context');\n```\n\nGiven the following code in `my-app.js`:\n\n```js\n/**\n * My app\n */\nvar app = function(str) {\n  return str\n};\n```\n\nPass `my-app.js` as a string:\n\n```js\nvar str = fs.readFileSync('my-app.js', 'utf8');\nvar context = parseContext(str);\n```\n\nResults in:\n\n```js\n[{\n  type: 'comment',\n  begin: 1,\n  end: 3\n},\n{\n  begin: 4,\n  type: 'function',\n  name: 'app',\n  string: 'app()',\n  original: 'var app = function(str) {'\n}]\n```\n\n## Related projects\n\n* [extract-comments](https://github.com/jonschlinkert/extract-comments): Extract code comments from string or from a glob of files.\n* [parse-code-context](https://github.com/jonschlinkert/parse-code-context): Parse code context in a single line of javascript, for functions, variable declarations, methods, prototype… [more](https://github.com/jonschlinkert/parse-code-context)\n* [parse-comments](https://github.com/jonschlinkert/parse-comments): Parse code comments from JavaScript or any language that uses the same format.\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/code-context/issues/new)\n\n## Authors\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2015 Jon Schlinkert\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on August 01, 2015._","_attachments":{},"homepage":"https://github.com/jonschlinkert/code-context","bugs":{"url":"https://github.com/jonschlinkert/code-context/issues"},"license":"MIT"}