{"bugs":{"url":"https://github.com/twolfson/char-props/issues"},"dist":{"shasum":"7a093cc03abd008fdc8e5eb52145a7520c0063ec","tarball":"https://registry.npmjs.org/char-props/-/char-props-0.1.0.tgz","integrity":"sha512-gJL4VURBLinitVUimz3aOv70FKKcjajDd0f7ijshjBio9k2f7h+nMtEjp5H4NGkI9PndAnhfwNfLTECASEd10w==","signatures":[{"sig":"MEUCIQCVFmszTMGSRf0aOGACctMDAirE4FNiro6J8FIGzzQ86QIgPa/eGVvQjtSV1ObPrfZQj/JfeqL4oMqDqlDnK1pk0RQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/charProps","name":"char-props","author":{"url":"http://twolfson.com/","name":"Todd Wolfson","email":"todd@twolfson.com"},"readme":"# char-props\n\nRetrieve line and column of a character at a given index.\n\n## Getting Started\nInstall the module with: `npm install charProps`\n\n## Documentation\n```js\n// charProps is a function which invokes the Indexer constructor\n\n// Indexer JSDoc\n/**\n * Indexer constructor (takes index and performs pre-emptive caching)\n * @constructor\n * @param {String} input Content to index\n */\n\n// Indexer.lineAt JSDoc\n/**\n * Get the line of the character at a certain index\n * @param {Number} index Index of character to retrieve line of\n * @param {Object} [options] Options to use for search\n * @param {Number} [options.minLine=0] Minimum line for us to search on\n * TODO: The following still have to be built/implemented\n * @param {Number} [options.maxLine=lines.length] Maximum line for us to search on\n * @param {String} [options.guess=\"average\"] Affects searching pattern -- can be \"high\", \"low\", or \"average\" (linear top-down, linear bottom-up, or binary)\n * @returns {Number} Line number of character\n */\n\n// Indexer.columnAt JSDoc\n/**\n * Get the column of the character at a certain index\n * @param {Number} index Index of character to retrieve column of\n * @returns {Number} Column number of character\n */\n```\n\n## Examples\n_(Coming soon)_\n\nFor now, please refer to [tests](/blob/master/test/charProps_test.js).\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using vows.\n\n## License\nCopyright (c) 2012 Todd Wolfson\nLicensed under the MIT license.\n","engines":{"node":">= 0.6.0"},"scripts":{"test":"vows"},"homepage":"https://github.com/twolfson/char-props","keywords":[],"licenses":[{"url":"https://github.com/twolfson/char-props/blob/master/LICENSE-MIT","type":"MIT"}],"repository":{"url":"git://github.com/twolfson/char-props.git","type":"git"},"description":"Retrieve line and column of a character at a given index.","maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}],"devDependencies":{"vows":"~0.6.4","grunt":"~0.3.12"},"_id":"char-props@0.1.0","version":"0.1.0"}