{"_id":"sunlight-congress-api","_rev":"33-aae174a6d517fda9b249412f64bfca2a","name":"sunlight-congress-api","description":"A simple wrapper for the Sunlight Congress API from the Sunlight Foundation","dist-tags":{"latest":"0.3.1"},"versions":{"0.0.1":{"name":"sunlight-congress-api","version":"0.0.1","author":{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"},"description":"A simple wrapper for Sunlight Congress API from SunlightLabs","contributors":[{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"}],"main":"./lib/main","repository":{"type":"git","url":"https://github.com/mcwhittemore/sunlight-congress-api.git"},"keywords":["api","congress","sunlight fondation","sunlight labs","open government"],"dependencies":{},"license":"MIT","engines":{"node":">=0.6"},"_id":"sunlight-congress-api@0.0.1","bundleDependencies":[],"dist":{"shasum":"ab3966eb0752814716851f3933961e9c40ab8d8f","tarball":"https://registry.npmjs.org/sunlight-congress-api/-/sunlight-congress-api-0.0.1.tgz","integrity":"sha512-Kk2nmillBwWe84OCRqUQYl8iIBk2y3Lk/3vXKb2CJ4BjxcJCHshKu5vJxoS5M/vlOrw27Z2pkx42NedojJIlug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDqH1TGsPm/PJ4CtXDrGjL/f8cCwKTbHkC3qnsmUYQ3tAiEAidXhIBuANpZuT4KcBeXjwnahUk35Jbmz7WPvfkiLW5g="}]},"_npmVersion":"1.2.0","_npmUser":{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"},"maintainers":[{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"}],"directories":{}},"0.0.2":{"name":"sunlight-congress-api","version":"0.0.2","author":{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"},"description":"A simple wrapper for Sunlight Congress API from SunlightLabs","contributors":[{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"}],"main":"./lib/main","repository":{"type":"git","url":"https://github.com/mcwhittemore/sunlight-congress-api.git"},"keywords":["api","congress","sunlight fondation","sunlight labs","open government"],"dependencies":{},"license":"MIT","engines":{"node":">=0.6"},"_id":"sunlight-congress-api@0.0.2","bundleDependencies":[],"dist":{"shasum":"0c0fcbd1cc9a8735bcaa3820d46292714b6c85c0","tarball":"https://registry.npmjs.org/sunlight-congress-api/-/sunlight-congress-api-0.0.2.tgz","integrity":"sha512-hzYZEIs597ze5yVc/KvfLZ1RJwGE8qCE4/L57lwAPSDriU/aaYm9l8HNlCeZfKNX0A53BVAeRoj36l2QgtadEA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFXvL/t8fTKbJdOUzAuYJJLYCLXwWMNenwzbzl/VvEURAiEA9hXied9h+LR/haABLXJdj7c3wKPROz3rBzwxXRMobxg="}]},"_npmVersion":"1.2.0","_npmUser":{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"},"maintainers":[{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"}],"directories":{}},"0.0.3":{"name":"sunlight-congress-api","version":"0.0.3","author":{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"},"description":"A simple wrapper for the Sunlight Congress API from the Sunlight Foundation","contributors":[{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"}],"main":"./lib/main","repository":{"type":"git","url":"https://github.com/mcwhittemore/sunlight-congress-api.git"},"keywords":["api","congress","sunlight foundation","sunlight labs","open government"],"dependencies":{},"license":"MIT","engines":{"node":">=0.6"},"_id":"sunlight-congress-api@0.0.3","bundleDependencies":[],"dist":{"shasum":"4434cc4a6fe971014ade0119c494f7edc9ac9677","tarball":"https://registry.npmjs.org/sunlight-congress-api/-/sunlight-congress-api-0.0.3.tgz","integrity":"sha512-z8sebaSd2ktyRCYFoiKxljZgL3Vqk4Tg9pOn9IvOeVEoO6w9Ypd+q6pbMNJZiowAH5XsuV+jjHROko2CpfMSBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvTJcZ6ZNc8tODEvoYDP+/oVCCPHULzKrudqItEnjasgIgcjj2UroOhhmXLRoeiVTtbU43ONDtNiDlJGCSChXGAFc="}]},"_npmVersion":"1.2.0","_npmUser":{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"},"maintainers":[{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"}]},"0.0.4":{"name":"sunlight-congress-api","version":"0.0.4","author":{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"},"description":"A simple wrapper for the Sunlight Congress API from the Sunlight Foundation","contributors":[{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"}],"main":"./lib/main","repository":{"type":"git","url":"https://github.com/mcwhittemore/sunlight-congress-api.git"},"keywords":["api","congress","sunlight foundation","sunlight labs","open government"],"dependencies":{},"license":"MIT","engines":{"node":">=0.6"},"bugs":{"url":"https://github.com/mcwhittemore/sunlight-congress-api/issues"},"bundleDependencies":[],"_id":"sunlight-congress-api@0.0.4","dist":{"shasum":"14bc67abbfcfb3383f29f034602055cf72304530","tarball":"https://registry.npmjs.org/sunlight-congress-api/-/sunlight-congress-api-0.0.4.tgz","integrity":"sha512-Gqqx3Rg+eUJnks3luDi81MAaC4RkDD9+wdEUEs8xWvP58MAQ0nGpGSenJjlp/iFiMSHPusSKsw0qATeJoE/rXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH0vIQ1CbrC5EsV2kUeS1OIN7P6mblg4woYxJEsWdRkkAiBaydpKZnFuZGxE25zIPteV7SytGgYoUC66rAD+PPRAow=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"},"maintainers":[{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"}]},"0.0.5":{"name":"sunlight-congress-api","version":"0.0.5","author":{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"},"description":"A simple wrapper for the Sunlight Congress API from the Sunlight Foundation","contributors":[{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"}],"main":"./lib/main","repository":{"type":"git","url":"https://github.com/mcwhittemore/sunlight-congress-api.git"},"keywords":["api","congress","sunlight foundation","sunlight labs","open government"],"dependencies":{},"license":"MIT","engines":{"node":">=0.6"},"bugs":{"url":"https://github.com/mcwhittemore/sunlight-congress-api/issues"},"homepage":"https://github.com/mcwhittemore/sunlight-congress-api","bundleDependencies":[],"_id":"sunlight-congress-api@0.0.5","dist":{"shasum":"4606c383f0de42715c22b1862e8e138afaeb6398","tarball":"https://registry.npmjs.org/sunlight-congress-api/-/sunlight-congress-api-0.0.5.tgz","integrity":"sha512-d0KF3SVk3AqfAwby9cHGSijshxz6VOTNdmsntzyiJEuhs9JrWsWfTByrGZdICZVywPu29dK+mSLdZzI+z7o4Pg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXZUrdKCz5q9bPxGmoMSvcKHdXUnWWYnZ+Z/Lh0NEX6wIhALBQdWO950ga3aO5kDceM2Wg99+YspPZcJyjW37ZKIVx"}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"},"maintainers":[{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"}]},"0.1.0":{"name":"sunlight-congress-api","version":"0.1.0","author":{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"},"description":"A simple wrapper for the Sunlight Congress API from the Sunlight Foundation","contributors":[{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"}],"main":"./lib/main","repository":{"type":"git","url":"https://github.com/mcwhittemore/sunlight-congress-api.git"},"keywords":["api","congress","sunlight foundation","sunlight labs","open government"],"dependencies":{},"license":"MIT","engines":{"node":">=0.6"},"bugs":{"url":"https://github.com/mcwhittemore/sunlight-congress-api/issues"},"homepage":"https://github.com/mcwhittemore/sunlight-congress-api","bundleDependencies":[],"_id":"sunlight-congress-api@0.1.0","dist":{"shasum":"7a2b7c20975d4ded9e82655f96b6b1b6509b8ebd","tarball":"https://registry.npmjs.org/sunlight-congress-api/-/sunlight-congress-api-0.1.0.tgz","integrity":"sha512-I8hOyM+4Fk0oziGwiMF79r2ZenMUj5vHypZvxVev8P2YD3xUEA7yN/0avoRyfkFL6wovdcgYR8L4nFCc2XApBQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCectc01LOAjMi04ZLPU485Czp1d3+qaTby9yLzDNCZHQIgYfQGm3KQaSSO7UCmfqRHje+LB2PwoxlZEU5o+THI+b8="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"},"maintainers":[{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"}]},"0.2.0":{"name":"sunlight-congress-api","version":"0.2.0","author":{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"},"description":"A simple wrapper for the Sunlight Congress API from the Sunlight Foundation","contributors":[{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"}],"main":"./lib/main","repository":{"type":"git","url":"https://github.com/mcwhittemore/sunlight-congress-api.git"},"keywords":["api","congress","sunlight foundation","sunlight labs","open government"],"dependencies":{"es6-promise":"^1.0.0"},"license":"MIT","engines":{"node":">=0.6"},"bugs":{"url":"https://github.com/mcwhittemore/sunlight-congress-api/issues"},"homepage":"https://github.com/mcwhittemore/sunlight-congress-api","bundleDependencies":[],"_id":"sunlight-congress-api@0.2.0","dist":{"shasum":"23e27dd054c80cba4c8cf16bf547b7df3aefe253","tarball":"https://registry.npmjs.org/sunlight-congress-api/-/sunlight-congress-api-0.2.0.tgz","integrity":"sha512-6CUqvreQOiK9iqaDj2DUfkWy30VQvTgaPuV5M1G4QujDaAx0/nxJo+WDQ/ps6txVHV6Er0vjndtDjj3xTvOmuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE61nzFs7171EJEHE+2BYy8Fjhb8+Ss/qgbHFax/VuSPAiBUympOiJRC80YB4LccfsMb2JIrCrV+qDbXvKzrLtQ1yQ=="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"},"maintainers":[{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"}]},"0.3.0":{"name":"sunlight-congress-api","version":"0.3.0","author":{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"},"description":"A simple wrapper for the Sunlight Congress API from the Sunlight Foundation","contributors":[{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"}],"main":"./lib/main","repository":{"type":"git","url":"https://github.com/mcwhittemore/sunlight-congress-api.git"},"keywords":["api","congress","sunlight foundation","sunlight labs","open government"],"dependencies":{"es6-promise":"^1.0.0"},"license":"MIT","engines":{"node":">=0.6"},"bugs":{"url":"https://github.com/mcwhittemore/sunlight-congress-api/issues"},"homepage":"https://github.com/mcwhittemore/sunlight-congress-api","bundleDependencies":[],"_id":"sunlight-congress-api@0.3.0","dist":{"shasum":"c563c7df58cc4b07b9b6d3be70b77577e43c6c8e","tarball":"https://registry.npmjs.org/sunlight-congress-api/-/sunlight-congress-api-0.3.0.tgz","integrity":"sha512-hT5NgJUXeE9DKUI8RzMTqKDh5lUBt3rj+7vRu79nsiBSFglMxRbetWgzSzOh4bI88fvSeSO4uq5B8pnKCkOA+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE3xYnY8bpJ6E3nbsJkl6zNo0uDC1oaEE2lfFkLj+QFrAiAaaJ8EV8BWcZi+4XO24OsZJMYOfzxwC0nABxdu7PAKRQ=="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"},"maintainers":[{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"}]},"0.3.1":{"name":"sunlight-congress-api","version":"0.3.1","author":{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"},"description":"A simple wrapper for the Sunlight Congress API from the Sunlight Foundation","contributors":[{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"}],"main":"./lib/main","repository":{"type":"git","url":"https://github.com/mcwhittemore/sunlight-congress-api.git"},"keywords":["api","congress","sunlight foundation","sunlight labs","open government"],"dependencies":{"es6-promise":"^1.0.0"},"license":"MIT","engines":{"node":">=0.6"},"gitHead":"5bb32010fbf7cc339724c2cf061efa7e23ecf98c","bugs":{"url":"https://github.com/mcwhittemore/sunlight-congress-api/issues"},"homepage":"https://github.com/mcwhittemore/sunlight-congress-api","bundleDependencies":[],"_id":"sunlight-congress-api@0.3.1","scripts":{},"_shasum":"3f35fd09559947d0f5d0ef60a46d6255143ee19e","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.11.16","_npmUser":{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"},"maintainers":[{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"}],"dist":{"shasum":"3f35fd09559947d0f5d0ef60a46d6255143ee19e","tarball":"https://registry.npmjs.org/sunlight-congress-api/-/sunlight-congress-api-0.3.1.tgz","integrity":"sha512-LSkcyqthMCYkJKXk4Z2WgbbfISbHbTtGdXyyb87DrPVlxpZlSWbBFLJJCVf5m03qsD4OExNjPalJYiuElQtOcA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEwI9ss9xy8zgVfL6xHy4bs9xIDS2t8iPkrDZ9+joxB4AiB8i5aUGXYuXZ4gEFz+5On82HlULsIXW37h9hAqeSpQNA=="}]}}},"readme":"# Sunlight Congress API Wrapper\n\nA `node.js` wrapper for the [Sunlight Congress API](http://sunlightlabs.github.com/congress/) from the [Sunlight Foundation](http://sunlightfoundation.com/).\n\n# Installing\n\n\tnpm install sunlight-congress-api\n\n\n## Usage\n\n\tvar api = require(\"sunlight-congress-api\");\n\n\tvar success = function(data){\n\t\tconsole.log(data);\n\t}\n\n\tapi.init(\"SOMEAPIKEY\");\n\n\tapi.votes().filter(\"year\", \"2012\").call(success);\n\n## Demo\n\nA small demo is provided. After creating a config.js file, run `node run.js` in the demo folder to try it out.\n\n## API\n\n### Base Module\n\n#### init(apikey)\n\nSets the apikey for all endpoint modules created following. Also allows a user to direct requests to a custom server.\n\n\tapi.init(\"SOMEAPIKEY\");\n\n\tOR\n\n\tapi.init({\n\t\tkey: \"SOMEAPIKEY\",\n\t\turl: \"https://congress.api.sunlightfoundation.com/\"\n\t});\n\n#### clone(obj)\n\nClones whatever object it is passed into another object. Good for creating similar but different endpoint modules.\n\n\tvar votes2012 = api.votes()\n\t\t\t\t\t\t.filter(\"chamber\", \"house\")\n\t\t\t\t\t\t.filter(\"year\", \"2012\");\n\n\tvar votes2013 = api.clone(votes2012)\n\t\t\t\t\t\t.filter(\"year\", \"2013\");\n\n### Endpoints\n\nThere are currently 10 endpoints to the Sunlight Congress API.\n\n* bills: `bills()` provides info on legislation in the House and Senate, back to 2009. Updated daily.\n* bills/search: `billsSearch()` does a full text search over legislation.\n* committees: `committees()` lists current committees, subcommittees, and their membership.\n* districts/locate: `districtsLocate()` finds congressional districts for a latitude/longitude or zip.\n* floor_updates: `floorUpdates()` lists up-to-the-minute updates from the floor of the House and Senate.\n* hearings:\t`hearings()` lists committee hearings in Congress. Updated as hearings are announced.\n* legislators: `legislators()` brings up current legislators' names, IDs, biography, and social media.\n* legislators/locate: `legislatorsLocate()` finds representatives and senators for a latitude/longitude or zip.\n* upcoming_bills: `upcomingBills()` lists bills scheduled for debate in the future, as announced by party leadership.\n* votes: `votes()` provide access to roll call votes in Congress, back to 2009. Updated within minutes of votes.\n\n### Endpoint Wide Functions\n\n#### call(success, [failure])\n\nIssues a GET request to the API. Async calls success on success and failure on failure.\n\n\tapi.votes().call(function(data){ \n\t\tconsole.log(data.results.length);\n\t});\n\n* success: callback function on a successful call.\n* failure: callback function on a failed call. Defaults to console.log.\n\nIf either `success` or `failure` aren't defined, `.call()` will return a promise, which will be resolved or rejected as appropriate. \n\n```js\n  api.votes().call().then(function(data){ \n    console.log(data.results.length);\n  });\n```\n\n#### explain()\n\nTurns on explain mode which add a JSON response with how the API interpreted the query, and database-specific explain information.\n\nThis is a convenience for debugging, not a \"supported\" API feature. Don't make automatic requests with explain mode turned on.\n\n\tapi.votes().explain();\n\n#### fields(field1, field2, ..., fieldN)\n\nProvides control over which fields to have Sunlight Congress API return to you. This is very helpful, as the API returns default fields only if this is not used.\n\nThis function takes any number of arguments. Each argument will be added the request string.\n\n\tapi.votes().fields(\"year\", \"chamber\") //returns the YEAR and CHAMBER fields from votes\n\n#### filter(field, value, [operator])\n\nAdds query parameter to quests. Allows for chaining.\n\n\tapi.votes().filter(\"year\", \"2012\"); // get all votes with year 2012\n\n* field: this is the field you want to filter on.\n* value: the value the field must eval to, to be returned.\n* operator: how to perform the eval. Defaults to =.\n\t* = - the field is equal to the value (default).\n\t* gt - the field is greater than this value\n\t* gte - the fiels is greater than or equal to this value\n \t* lt - the field is less than this value\n\t* lte - the field is less than or equal to this value\n\t* not - the field is not this value\n\t* all - the field is an array that contains all of these values (separated by \"|\")\n\t* in - the field is a string that is one of these values (separated by \"|\")\n\t* nin - the field is a string that is not one of these values (separated by \"|\")\n\t* exists - the field is both present and non-null (supply \"true\" or \"false\")\n\n#### getEndpoint()\n\nReturns the uri that would be called if call() was issued on the object.\n\n\tvar ep = api.districtsLocate().page(1, 10).getEndpoint();\n\tconsole.log(ep);\n\t//RESULT: http://congress.api.sunlightfoundation.com/districts/locate/?apikey=SOMEAPIKEY&per_page=10&page=1\n\n#### next(success, failure)\n\nIncrements page by 1 and then issues a call. If page has not been set it will increment it will call the first page.\n\n\tvar committees = api.committees();\n\tfor(var i=1; i<5; i++){\n\t\tcommittees.next(buildSuccess(\"COMMITTEESS PAGE \"+i));\n\t}\n\n* success: callback function on a successful call.\n* failure: callback function on a failed call. Defaults to console.log.\n\n`.next()` will return the result of the underlying `.call()` method. This means if `success` or `failure` isn't defined, a promise will be returned.\n\n#### order(field, [direction]) \n\nOverloaded options provided for objects and arrays, see below for examples.\n\nProvides control over the ordering of results. This is vital to pagination returns. \n\n\t//orders the result of votes by year from newest to oldest\n\tapi.votes().order(\"year\", \"desc\"); \n\n* field: which field to sort by.\n* direction: how to direct. Two options, desc and asc. Defaults to desc.\n\nIf you want to multi-order a call, use the order function twice or use one of the overloaded options.\n\n\t//orders the results by chamber from a to z and then by year from newest to oldest.\n\tapi.votes().order(\"chamber\", \"asc\").order(\"year\");\n\n\t//add multiple at once with a single call\n\tapi.votes().order([\"year\", \"desc\"], [\"chamber\", \"desc\"]);\n\tapi.votes().order({field:\"year\", direction:\"asc\"}, {field:\"chamber\", direction:\"asc\"});\n\n#### page(pagenumber, [pagesize])\n\nProvides control over the pages Sunlight Congress API returns to you.\n\n\tapi.votes().page(2, 5); //return page 2 of votes where the pagesize is 5 items.\n\n* pagenumber: which page to have returned.\n* pagesize: how many items to return on a page. Defaults to 20. Max is 50.\n\n#### search(q)\n\nProvides control over the search feature. On endpoints ending in /search, it checks that the query string is valid for full text search.\n\n\t// Senate hearings matching \"environment\"\n\tapi.hearings().filter(\"chamber\", \"senate\").search(\"environment\");\n\n\t//House floor updates matching \"committee of the whole\"\n\tapi.floorUpdates().filter(\"chamber\", \"house\").search(\"committee of the whole\");\n\n\t//Endpoints ending in /search can take multiple phrases.\n\t//Phrase must be wrapped in \" not '\n\n\t//Bills matching \"freedom of information\" and words starting with \"accountab\"\n\tapi.billsSearch.search(\"\\\"freedom of information\\\" accountab*\");\n\n\t//Bills with \"transparency\" and \"accountability\" within 5 words of each other\n\tapi.billsSearch.search('\"transparency accountability\"~5');\n\n* q: what to search for.\n\n### Full Text Search Endpoints\n\nEndpoints Included\n\n* billsSearch\n\n#### highlight([startTag, endTag])\n\nHighlights the text which matches the search wrapped in em tags, unless other tags are provided.\n\n\t// Bills with \"transparency\" and \"accountability\" within 5 words of each other\n\t// Highlighted in red\n\tapi.billsSearch()\n\t\t.search('\"transparency accountability\"~5')\n\t\t.highlight(\"<span style='color:red;'>\", \"</span>\");\n\n* startTag: the html tag to start the highlight. Defaults to <em>\n* endTag: the html tag to end the highlight. Defaults to </em>\n","maintainers":[{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"}],"time":{"modified":"2022-06-27T02:06:09.351Z","created":"2013-02-07T05:51:13.525Z","0.0.1":"2013-02-07T05:51:15.154Z","0.0.2":"2013-02-08T22:39:20.483Z","0.0.3":"2013-02-11T23:04:24.720Z","0.0.4":"2014-01-13T20:56:31.031Z","0.0.5":"2014-03-31T14:02:39.868Z","0.1.0":"2014-07-02T03:46:48.383Z","0.2.0":"2014-08-28T15:06:26.631Z","0.3.0":"2014-08-28T15:29:42.867Z","0.3.1":"2015-03-12T19:38:54.805Z"},"author":{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"},"repository":{"type":"git","url":"https://github.com/mcwhittemore/sunlight-congress-api.git"},"homepage":"https://github.com/mcwhittemore/sunlight-congress-api","keywords":["api","congress","sunlight foundation","sunlight labs","open government"],"contributors":[{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"}],"bugs":{"url":"https://github.com/mcwhittemore/sunlight-congress-api/issues"},"license":"MIT","readmeFilename":"README.md"}