{"_id":"pinpoint","_rev":"7-8ab41361c0c4f8ea653633c2b4a78d82","name":"pinpoint","description":"Display an arrow in a string of code to point to a location","dist-tags":{"latest":"1.1.0"},"versions":{"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"},"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.","readmeFilename":"README.md","_id":"pinpoint@1.0.0","dist":{"shasum":"11469494e0b14816e2fbebdd88ae189ac1a97288","tarball":"https://registry.npmjs.org/pinpoint/-/pinpoint-1.0.0.tgz","integrity":"sha512-hhHe8xE5OJdKf+ODSAA/LaPalKpgtPr8m0iQIHA8mnX8hYpKINCk+/oRZV7L87vKtQD0kDiTCVc20HHyk/JotA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDQ6IVpDxISCI97duGIfIO6c+riu4Av5klwrZpjitRylAiAHc0buNVTjge4P3BxqvzSu3A0MY2GamHNHXZzC6jcd7Q=="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"curvedmark","email":"curvedmark@gmail.com"},"maintainers":[{"name":"curvedmark","email":"curvedmark@gmail.com"}]},"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"},"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.","readmeFilename":"README.md","_id":"pinpoint@1.1.0","dist":{"shasum":"0cf7757a6977f1bf7f6a32207b709e377388e874","tarball":"https://registry.npmjs.org/pinpoint/-/pinpoint-1.1.0.tgz","integrity":"sha512-+04FTD9x7Cls2rihLlo57QDCcHoLBGn5Dk51SwtFBWkUWLxZaBXyNVpCw1S+atvE7GmnFjeaRZ0WLq3UYuqAdg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMCQQ72X+WbFm3KzlDejr9K9yJAonO+M8nLjRaOo2JawIgMxCJMfXPjfmjaO03Es5erpxuT6gst+EYttA1GjJXM0I="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"curvedmark","email":"curvedmark@gmail.com"},"maintainers":[{"name":"curvedmark","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.","maintainers":[{"name":"curvedmark","email":"curvedmark@gmail.com"}],"time":{"modified":"2022-06-24T00:13:41.235Z","created":"2013-08-19T09:30:46.479Z","1.0.0":"2013-08-19T09:30:51.336Z","1.1.0":"2013-09-21T09:56:46.195Z"},"author":{"name":"Glen Huang","email":"curvedmark@gmail.com"},"repository":{"type":"git","url":"git://github.com/curvedmark/pinpoint.git"}}