{"_id":"headless","_rev":"437692","name":"headless","description":"Headless is a Node.js wrapper for Xvfb, the virtual framebuffer","dist-tags":{"latest":"1.2.0"},"maintainers":[{"name":"kesla","email":""}],"time":{"modified":"2021-08-05T06:22:14.000Z","created":"2012-03-06T11:25:56.969Z","1.2.0":"2016-12-05T18:05:43.686Z","1.1.0":"2016-11-24T19:19:46.922Z","1.0.0":"2014-09-07T11:25:30.903Z","0.2.1":"2014-08-26T08:56:55.427Z","0.2.0":"2014-08-12T17:05:34.489Z","0.1.7":"2014-04-27T20:14:18.407Z","0.1.6":"2013-07-14T19:43:20.161Z","0.1.5":"2013-07-11T11:12:50.844Z","0.1.4":"2013-07-11T11:08:20.191Z","0.1.3":"2013-07-06T22:08:38.640Z","0.1.2":"2013-06-22T16:05:27.624Z","0.1.1":"2012-09-26T09:30:37.925Z","0.1.0":"2012-06-27T20:05:00.152Z","0.0.1":"2012-03-06T11:25:56.969Z"},"users":{"mastayoda":true,"gmisra":true,"neofreko":true},"author":{"name":"David Björklund","email":"david@admaze.ly"},"repository":{"type":"git","url":"git://github.com/kesla/node-headless.git"},"versions":{"1.2.0":{"author":{"name":"David Björklund","email":"david@admaze.ly"},"name":"headless","description":"Headless is a Node.js wrapper for Xvfb, the virtual framebuffer","version":"1.2.0","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git://github.com/kesla/node-headless.git"},"main":"index.js","engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"bugs":{"url":"https://github.com/kesla/node-headless/issues"},"homepage":"https://github.com/kesla/node-headless","directories":{"test":"test"},"license":"MIT","keywords":["xvfb","headless"],"gitHead":"de9b3895ccb1f4bcfa08f83ebf2580adefe51ade","_id":"headless@1.2.0","_shasum":"440ba3a26cd959692844cae42416ab395a552151","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"dist":{"shasum":"440ba3a26cd959692844cae42416ab395a552151","size":3182,"noattachment":false,"key":"/headless/-/headless-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/headless/download/headless-1.2.0.tgz"},"maintainers":[{"name":"kesla","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/headless-1.2.0.tgz_1480961141875_0.4945436909329146"},"publish_time":1480961143686,"_cnpm_publish_time":1480961143686,"_hasShrinkwrap":false},"1.1.0":{"author":{"name":"David Björklund","email":"david@admaze.ly"},"name":"headless","description":"Headless is a Node.js wrapper for Xvfb, the virtual framebuffer","version":"1.1.0","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git://github.com/kesla/node-headless.git"},"main":"index.js","engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"bugs":{"url":"https://github.com/kesla/node-headless/issues"},"homepage":"https://github.com/kesla/node-headless","directories":{"test":"test"},"license":"MIT","keywords":["xvfb","headless"],"gitHead":"de17a90f8d07f4bbd1ab4c8ec5c5e8041430ad79","_id":"headless@1.1.0","_shasum":"6ddcbcf655a4a0dccc621e65ef601230f0a72529","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"dist":{"shasum":"6ddcbcf655a4a0dccc621e65ef601230f0a72529","size":3069,"noattachment":false,"key":"/headless/-/headless-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/headless/download/headless-1.1.0.tgz"},"maintainers":[{"name":"kesla","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/headless-1.1.0.tgz_1480015184674_0.5554631750565022"},"publish_time":1480015186922,"_cnpm_publish_time":1480015186922,"_hasShrinkwrap":false},"1.0.0":{"author":{"name":"David Björklund","email":"david@admaze.ly"},"name":"headless","description":"Headless is a Node.js wrapper for Xvfb, the virtual framebuffer","version":"1.0.0","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git://github.com/kesla/node-headless.git"},"main":"index.js","engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"bugs":{"url":"https://github.com/kesla/node-headless/issues"},"homepage":"https://github.com/kesla/node-headless","directories":{"test":"test"},"license":"MIT","keywords":["xvfb","headless"],"gitHead":"608f279879a50b73617d50fd79e139b010218465","_id":"headless@1.0.0","_shasum":"5d75b0c2eab4580e9e6c32327fec75c4aac81cb3","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"maintainers":[{"name":"kesla","email":""}],"dist":{"shasum":"5d75b0c2eab4580e9e6c32327fec75c4aac81cb3","size":2982,"noattachment":false,"key":"/headless/-/headless-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/headless/download/headless-1.0.0.tgz"},"publish_time":1410089130903,"_cnpm_publish_time":1410089130903,"_hasShrinkwrap":false},"0.2.1":{"author":{"name":"David Björklund","email":"david@admaze.ly"},"name":"headless","description":"Headless is a Node.js wrapper for Xvfb, the virtual framebuffer","version":"0.2.1","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git://github.com/kesla/node-headless.git"},"main":"index.js","engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"bugs":{"url":"https://github.com/kesla/node-headless/issues"},"homepage":"https://github.com/kesla/node-headless","directories":{"test":"test"},"license":"MIT","keywords":["xvfb","headless"],"gitHead":"54c0c3348df56a42b210a9a92f608c7caab9f065","_id":"headless@0.2.1","_shasum":"aa7dd1adf4f63a96cd4b04620067f85d6b8d70a7","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"maintainers":[{"name":"kesla","email":""}],"dist":{"shasum":"aa7dd1adf4f63a96cd4b04620067f85d6b8d70a7","size":2940,"noattachment":false,"key":"/headless/-/headless-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/headless/download/headless-0.2.1.tgz"},"publish_time":1409043415427,"_cnpm_publish_time":1409043415427,"_hasShrinkwrap":false},"0.2.0":{"author":{"name":"David Björklund","email":"david@admaze.ly"},"name":"headless","description":"Headless is a Node.js wrapper for Xvfb, the virtual framebuffer","version":"0.2.0","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git://github.com/kesla/node-headless.git"},"main":"index.js","engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"bugs":{"url":"https://github.com/kesla/node-headless/issues"},"homepage":"https://github.com/kesla/node-headless","directories":{"test":"test"},"license":"MIT","keywords":["xvfb","headless"],"gitHead":"e488ceb13436b146690a45d72820ffc742c44af4","_id":"headless@0.2.0","_shasum":"8be281e7e1418af3b39e4eb41276304d5aabce8c","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"maintainers":[{"name":"kesla","email":""}],"dist":{"shasum":"8be281e7e1418af3b39e4eb41276304d5aabce8c","size":2782,"noattachment":false,"key":"/headless/-/headless-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/headless/download/headless-0.2.0.tgz"},"publish_time":1407863134489,"_cnpm_publish_time":1407863134489,"_hasShrinkwrap":false},"0.1.7":{"author":{"name":"David Björklund","email":"david@admaze.ly"},"name":"headless","description":"Headless is a Node.js wrapper for Xvfb, the virtual framebuffer","version":"0.1.7","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git://github.com/kesla/node-headless.git"},"main":"index.js","engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"bugs":{"url":"https://github.com/kesla/node-headless/issues"},"homepage":"https://github.com/kesla/node-headless","_id":"headless@0.1.7","dist":{"shasum":"6e62fae668947f88184d5c156ede7c5695a7e9c8","size":2530,"noattachment":false,"key":"/headless/-/headless-0.1.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/headless/download/headless-0.1.7.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"maintainers":[{"name":"kesla","email":""}],"directories":{},"publish_time":1398629658407,"_cnpm_publish_time":1398629658407,"_hasShrinkwrap":false},"0.1.6":{"author":{"name":"David Björklund","email":"david@admaze.ly"},"name":"headless","description":"Headless is a Node.js wrapper for Xvfb, the virtual framebuffer","version":"0.1.6","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git://github.com/kesla/node-headless.git"},"main":"index.js","engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"readmeFilename":"README.md","bugs":{"url":"https://github.com/kesla/node-headless/issues"},"_id":"headless@0.1.6","dist":{"shasum":"b8cef2b0fdc560b7411b1009100abdd3527d92cb","size":2388,"noattachment":false,"key":"/headless/-/headless-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/headless/download/headless-0.1.6.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"maintainers":[{"name":"kesla","email":""}],"directories":{},"publish_time":1373831000161,"_cnpm_publish_time":1373831000161,"_hasShrinkwrap":false},"0.1.5":{"author":{"name":"David Björklund","email":"david@admaze.ly"},"name":"headless","description":"Headless is a Node.js wrapper for Xvfb, the virtual framebuffer","version":"0.1.5","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git://github.com/kesla/node-headless.git"},"main":"index.js","engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"readmeFilename":"README.md","bugs":{"url":"https://github.com/kesla/node-headless/issues"},"_id":"headless@0.1.5","dist":{"shasum":"b0def62bed0eb9c8765f9c6feb7cbeb334c379ff","size":2333,"noattachment":false,"key":"/headless/-/headless-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/headless/download/headless-0.1.5.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"maintainers":[{"name":"kesla","email":""}],"directories":{},"publish_time":1373541170844,"_cnpm_publish_time":1373541170844,"_hasShrinkwrap":false},"0.1.4":{"author":{"name":"David Björklund","email":"david@admaze.ly"},"name":"headless","description":"Headless is a Node.js wrapper for Xvfb, the virtual framebuffer","version":"0.1.4","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git://github.com/kesla/node-headless.git"},"main":"index.js","engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"readmeFilename":"README.md","bugs":{"url":"https://github.com/kesla/node-headless/issues"},"_id":"headless@0.1.4","dist":{"shasum":"1a3d3faf472b4800f1b14c02eece56aeb7a06bb0","size":2339,"noattachment":false,"key":"/headless/-/headless-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/headless/download/headless-0.1.4.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"maintainers":[{"name":"kesla","email":""}],"directories":{},"publish_time":1373540900191,"_cnpm_publish_time":1373540900191,"_hasShrinkwrap":false},"0.1.3":{"author":{"name":"David Björklund","email":"david@admaze.ly"},"name":"headless","description":"Headless is a Node.js wrapper for Xvfb, the virtual framebuffer","version":"0.1.3","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git://github.com/kesla/node-headless.git"},"main":"index.js","engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"readmeFilename":"README.md","bugs":{"url":"https://github.com/kesla/node-headless/issues"},"_id":"headless@0.1.3","dist":{"shasum":"c595734eea55ed227611b9dd84a63b518e111553","size":2335,"noattachment":false,"key":"/headless/-/headless-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/headless/download/headless-0.1.3.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"maintainers":[{"name":"kesla","email":""}],"directories":{},"publish_time":1373148518640,"_cnpm_publish_time":1373148518640,"_hasShrinkwrap":false},"0.1.2":{"author":{"name":"David Björklund","email":"david@admaze.ly"},"name":"headless","description":"Headless is a Node.js wrapper for Xvfb, the virtual framebuffer","version":"0.1.2","scripts":{"preinstall":"test -n \"$(which Xvfb)\" || (echo 'Xvfb not found. Please install it and add it to your PATH.' && exit 1)","test":"node test/test.js"},"repository":{"type":"git","url":"git://github.com/kesla/node-headless.git"},"main":"index.js","engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"readmeFilename":"README.md","bugs":{"url":"https://github.com/kesla/node-headless/issues"},"_id":"headless@0.1.2","dist":{"shasum":"51ec3725cd93f6930326add1c940ac1192427428","size":2413,"noattachment":false,"key":"/headless/-/headless-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/headless/download/headless-0.1.2.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"maintainers":[{"name":"kesla","email":""}],"directories":{},"publish_time":1371917127624,"_cnpm_publish_time":1371917127624,"_hasShrinkwrap":false},"0.1.1":{"author":{"name":"David Björklund","email":"david@admaze.ly"},"name":"headless","description":"Headless is a Node.js wrapper for Xvfb, the virtual framebuffer","version":"0.1.1","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git://github.com/kesla/node-headless.git"},"main":"index.js","engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"_id":"headless@0.1.1","dist":{"shasum":"4630a7fe476dd1306576129c52a09659ab6cfa1f","size":1591,"noattachment":false,"key":"/headless/-/headless-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/headless/download/headless-0.1.1.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"maintainers":[{"name":"kesla","email":""}],"directories":{},"publish_time":1348651837925,"_cnpm_publish_time":1348651837925,"_hasShrinkwrap":false},"0.1.0":{"author":{"name":"David Björklund","email":"david@admaze.ly"},"name":"headless","description":"Headless is a Node.js wrapper for Xvfb, the virtual framebuffer","version":"0.1.0","repository":{"type":"git","url":"git://github.com/kesla/node-headless.git"},"main":"index.js","engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"_id":"headless@0.1.0","dist":{"shasum":"837333cb4493e07e636b51f825ca352e75be3fa4","size":1170,"noattachment":false,"key":"/headless/-/headless-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/headless/download/headless-0.1.0.tgz"},"maintainers":[{"name":"kesla","email":""}],"directories":{},"publish_time":1340827500152,"_cnpm_publish_time":1340827500152,"_hasShrinkwrap":false},"0.0.1":{"author":{"name":"David Björklund","email":"david@admaze.ly"},"name":"headless","description":"Headless is a Node.js wrapper for Xvfb, the virtual framebuffer","version":"0.0.1","repository":{"type":"git","url":"git://github.com/kesla/node-headless.git"},"main":"index.js","engines":{"node":"~0.6.11"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"_id":"headless@0.0.1","_engineSupported":true,"_npmVersion":"1.1.0-2","_nodeVersion":"v0.6.11","_defaultsLoaded":true,"dist":{"shasum":"cb0efb4b2417c9dc1a116aef1a5f00ada6096407","size":1193,"noattachment":false,"key":"/headless/-/headless-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/headless/download/headless-0.0.1.tgz"},"maintainers":[{"name":"kesla","email":""}],"directories":{},"publish_time":1331033156969,"_cnpm_publish_time":1331033156969,"_hasShrinkwrap":false}},"readme":"node-headless[![build status](https://secure.travis-ci.org/kesla/node-headless.png)](http://travis-ci.org/kesla/node-headless)\n=========\n\nnode-headless makes it easy to start and use Xvfb in node.\nheadless is inspired by xvfb-run - it searches for a free X display number and starts Xvfb on that.\n\n[![NPM](https://nodei.co/npm/headless.png?downloads&stars)](https://nodei.co/npm/headless/)\n\n[![NPM](https://nodei.co/npm-dl/headless.png)](https://nodei.co/npm/headless/)\n\nAPI\n=======\n\n````javascript\nvar headless = require('headless');\n\nheadless(function(err, childProcess, servernum) {\n  // childProcess is a ChildProcess, as returned from child_process.spawn()\n  console.log('Xvfb running on server number', servernum);\n  console.log('Xvfb pid', childProcess.pid);\n  console.log('err should be null', err);\n});\n````\n\nheadless also support an optional number to start searching from.\n\n````javascript\nvar headless = require('headless');\n\nheadless(200, function(err, childProcess, servernum) {\n  // servernum will be at least 200\n  console.log('Xvfb running on server number', servernum);\n  console.log('Xvfb pid', childProcess.pid);\n});\n````\n\nOptions:\n- `display`: optional display parameters (`width`, `height` & `depth`). If you want to specify `display`, `width` and `height` are required, but `depth` is optional and defaults to 16.\n- `args`: an array of arbitrary additional Xvfb arguments\n- `stdio`: set the stdio of the spawned Xvfb process(es). Set this to `'inherit'` to see Xvfb's stdout and stderr for debugging purposes.\n\n````javascript\nvar headless = require('headless');\n\nvar options = {\n  display: {width: 1024, height: 980, depth: 32},\n  args: ['-extension', 'RANDR'],\n  stdio: 'inherit'\n};\n\nheadless(options, function(err, childProcess, servernum) {\n  // childProcess is a ChildProcess, as returned from child_process.spawn()\n  console.log('Xvfb running on server number', servernum);\n  console.log('Xvfb pid', childProcess.pid);\n  console.log('err should be null', err);\n});\n````\n\ninstall\n=======\n\nWith [npm](http://npmjs.org), do:\n\n    npm install headless\n\nIf you're having problems with Xvfb-instances not getting killed correctly, and is running on a platform that the posix-module supports, install [child-killer](https://npmjs.org/package/child-killer) (`npm install child-killer`) and headless will automatically use it.\n\nLicence\n=======\n\nCopyright (c) 2014 David Björklund\n\nThis software is released under the MIT license:\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","_attachments":{},"homepage":"https://github.com/kesla/node-headless","bugs":{"url":"https://github.com/kesla/node-headless/issues"},"license":"MIT"}