{"_id":"pinpoint","_rev":"1653215","name":"pinpoint","description":"Display an arrow in a string of code to point to a location","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"curvedmark","email":"curvedmark@gmail.com"}],"time":{"modified":"2026-10-30T18:41:13.000Z","created":"2013-08-19T09:30:51.336Z","1.1.0":"2013-09-21T09:56:46.195Z","1.0.0":"2013-08-19T09:30:51.336Z"},"users":{},"author":{"name":"Glen Huang","email":"curvedmark@gmail.com"},"repository":{"type":"git","url":"git://github.com/curvedmark/pinpoint.git"},"versions":{"1.1.0":{"name":"pinpoint","version":"1.1.0","description":"Display an arrow in a string of code to point to a location","main":"lib/pinpoint.js","directories":{"lib":"lib","test":"test"},"scripts":{"test":"mocha --bail --compilers coffee:coffee-script --ui qunit"},"repository":{"type":"git","url":"git://github.com/curvedmark/pinpoint.git"},"keywords":["editor"],"author":{"name":"Glen Huang","email":"curvedmark@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/curvedmark/pinpoint/issues"},"devDependencies":{"mocha":"1.x","coffee-script":"1.x"},"readmeFilename":"README.md","_id":"pinpoint@1.1.0","dist":{"shasum":"0cf7757a6977f1bf7f6a32207b709e377388e874","tarball":"http://registry-npm.ywwl.com/pinpoint/download/pinpoint-1.1.0.tgz","integrity":"sha512-+04FTD9x7Cls2rihLlo57QDCcHoLBGn5Dk51SwtFBWkUWLxZaBXyNVpCw1S+atvE7GmnFjeaRZ0WLq3UYuqAdg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMCQQ72X+WbFm3KzlDejr9K9yJAonO+M8nLjRaOo2JawIgMxCJMfXPjfmjaO03Es5erpxuT6gst+EYttA1GjJXM0I="}],"size":2628,"noattachment":false,"key":"/pinpoint/-/pinpoint-1.1.0.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"curvedmark","email":"curvedmark@gmail.com"},"maintainers":[{"name":"curvedmark","email":"curvedmark@gmail.com"}],"publish_time":1379757406195,"_cnpm_publish_time":1379757406195},"1.0.0":{"name":"pinpoint","version":"1.0.0","description":"Display an arrow in a string of code to point to a location","main":"lib/pinpoint.js","directories":{"lib":"lib","test":"test"},"scripts":{"test":"mocha --bail --compilers coffee:coffee-script --ui qunit"},"repository":{"type":"git","url":"git://github.com/curvedmark/pinpoint.git"},"keywords":["editor"],"author":{"name":"Glen Huang","email":"curvedmark@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/curvedmark/pinpoint/issues"},"devDependencies":{"mocha":"1.x","coffee-script":"1.x"},"readmeFilename":"README.md","_id":"pinpoint@1.0.0","dist":{"shasum":"11469494e0b14816e2fbebdd88ae189ac1a97288","tarball":"http://registry-npm.ywwl.com/pinpoint/download/pinpoint-1.0.0.tgz","integrity":"sha512-hhHe8xE5OJdKf+ODSAA/LaPalKpgtPr8m0iQIHA8mnX8hYpKINCk+/oRZV7L87vKtQD0kDiTCVc20HHyk/JotA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDQ6IVpDxISCI97duGIfIO6c+riu4Av5klwrZpjitRylAiAHc0buNVTjge4P3BxqvzSu3A0MY2GamHNHXZzC6jcd7Q=="}],"size":2430,"noattachment":false,"key":"/pinpoint/-/pinpoint-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"curvedmark","email":"curvedmark@gmail.com"},"maintainers":[{"name":"curvedmark","email":"curvedmark@gmail.com"}],"publish_time":1376904651336,"_cnpm_publish_time":1376904651336}},"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.","_attachments":{},"readmeFilename":"README.md","bugs":{"url":"https://github.com/curvedmark/pinpoint/issues"},"license":"MIT"}