{"bugs":{"url":"https://github.com/curvedmark/pinpoint/issues"},"dist":{"shasum":"0cf7757a6977f1bf7f6a32207b709e377388e874","tarball":"https://registry.npmjs.org/pinpoint/-/pinpoint-1.1.0.tgz","integrity":"sha512-+04FTD9x7Cls2rihLlo57QDCcHoLBGn5Dk51SwtFBWkUWLxZaBXyNVpCw1S+atvE7GmnFjeaRZ0WLq3UYuqAdg==","signatures":[{"sig":"MEUCIQCMCQQ72X+WbFm3KzlDejr9K9yJAonO+M8nLjRaOo2JawIgMxCJMfXPjfmjaO03Es5erpxuT6gst+EYttA1GjJXM0I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/pinpoint.js","name":"pinpoint","_from":".","author":{"name":"Glen Huang","email":"curvedmark@gmail.com"},"readme":"# pinpoint\n\nAdd line numbers and an arrow to a string of code that points to a specific location.\n\n## Installation\n\n\tnpm install pinpoint\n\n## Example\n\nWith this code:\n\n```javascript\nfunction add(left, right) {\n  return left + right;\n}\n\nconsole.log(add(1 + 1));\n```\n\nWhen being asked to point to line 2 and column 2, generates this:\n\n```javascript\n1| function add(left, right) {\n2|   return left + right;\n-----^\n3| }\n4|\n5| console.log(add(1 + 1));\n```\n## API\n\n```javascript\nvar pinpoint = require('pinpoint');\n\nvar str = pinpoint(code, options);\n```\n\n* `code` - a string of code\n* `options` - an object literal supports these options:\n\t* `line` - the line number to point to, 1-based.\n\t* `column` - the column number to point to, 1-based.\n\t* `showLines` - the number of lines to show. The pointed line will try to stay in the middle of the displays lines.\n\t* `indent` - indent string prepend to each line, before the line number.\n\t* `tabSize` - width of a tab character.","license":"MIT","scripts":{"test":"mocha --bail --compilers coffee:coffee-script --ui qunit"},"_npmUser":{"name":"curvedmark","email":"curvedmark@gmail.com"},"keywords":["editor"],"repository":{"url":"git://github.com/curvedmark/pinpoint.git","type":"git"},"_npmVersion":"1.3.8","description":"Display an arrow in a string of code to point to a location","directories":{"lib":"lib","test":"test"},"maintainers":[{"name":"curvedmark","email":"curvedmark@gmail.com"}],"readmeFilename":"README.md","devDependencies":{"mocha":"1.x","coffee-script":"1.x"},"_id":"pinpoint@1.1.0","version":"1.1.0"}