{"_id":"pipetteur","_rev":"132545","name":"pipetteur","description":"A function to extract any colors from a string","dist-tags":{"latest":"2.0.3"},"maintainers":[{"name":"munter","email":"munter@fumle.dk"}],"time":{"modified":"2021-06-03T11:13:50.000Z","created":"2014-07-07T22:37:15.951Z","2.0.3":"2016-06-15T11:53:01.389Z","2.0.2":"2016-04-04T10:50:51.479Z","2.0.1":"2016-04-01T22:33:20.589Z","2.0.0":"2016-03-15T00:30:00.598Z","1.0.1":"2014-07-14T23:18:59.528Z","1.0.0":"2014-07-13T22:13:57.758Z","0.0.1":"2014-07-07T22:37:15.951Z"},"users":{},"author":{"name":"Peter Müller","email":"munter@fumle.dk"},"repository":{"type":"git","url":"git+https://github.com/Munter/pipetteur.git"},"versions":{"2.0.3":{"name":"pipetteur","version":"2.0.3","description":"A function to extract any colors from a string","main":"pipetteur.js","scripts":{"lint":"jshint .","test":"npm run lint && mocha","coverage":"istanbul cover _mocha -- --reporter dot","travis":"npm run lint && npm run coverage"},"repository":{"type":"git","url":"git+https://github.com/Munter/pipetteur.git"},"keywords":["color","string","match","extract","names","hex","rbg","hsv","hsl"],"author":{"name":"Peter Müller","email":"munter@fumle.dk"},"license":"MIT","bugs":{"url":"https://github.com/Munter/pipetteur/issues"},"homepage":"https://github.com/Munter/pipetteur","dependencies":{"onecolor":"^3.0.4","synesthesia":"^1.0.1"},"devDependencies":{"coveralls":"^2.11.9","istanbul":"^0.4.3","jshint":"^2.9.2","mocha":"^2.5.3","mocha-lcov-reporter":"^1.2.0","unexpected":"^10.13.3"},"gitHead":"c7c66bb8c023721628dbaccaa6f294157fdc4226","_id":"pipetteur@2.0.3","_shasum":"1955760959e8d1a11cb2a50ec83eec470633e49f","_from":".","_npmVersion":"3.9.2","_nodeVersion":"4.4.4","_npmUser":{"name":"munter","email":"munter@fumle.dk"},"maintainers":[{"name":"munter","email":"munter@fumle.dk"}],"dist":{"shasum":"1955760959e8d1a11cb2a50ec83eec470633e49f","size":6154,"noattachment":false,"key":"/pipetteur/-/pipetteur-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/pipetteur/download/pipetteur-2.0.3.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pipetteur-2.0.3.tgz_1465991578021_0.3095195039641112"},"directories":{},"publish_time":1465991581389,"_cnpm_publish_time":1465991581389,"_hasShrinkwrap":false},"2.0.2":{"name":"pipetteur","version":"2.0.2","description":"A function to extract any colors from a string","main":"pipetteur.js","scripts":{"lint":"jshint .","test":"npm run lint && mocha","coverage":"istanbul cover _mocha -- --reporter dot","travis":"npm run lint && npm run coverage"},"repository":{"type":"git","url":"git+https://github.com/Munter/pipetteur.git"},"keywords":["color","string","match","extract","names","hex","rbg","hsv","hsl"],"author":{"name":"Peter Müller","email":"munter@fumle.dk"},"license":"MIT","bugs":{"url":"https://github.com/Munter/pipetteur/issues"},"homepage":"https://github.com/Munter/pipetteur","dependencies":{"onecolor":"3.0.1","synesthesia":"1.0.1"},"devDependencies":{"coveralls":"2.11.9","istanbul":"0.4.2","jshint":"2.9.1","mocha":"2.4.5","mocha-lcov-reporter":"1.2.0","unexpected":"10.11.1"},"gitHead":"9526af07974497f082b696896f3a5b2960dc4382","_id":"pipetteur@2.0.2","_shasum":"4d7c5206d5ceaf62f19f14b85223ea6df28d17b9","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.1","_npmUser":{"name":"munter","email":"munter@fumle.dk"},"maintainers":[{"name":"munter","email":"munter@fumle.dk"}],"dist":{"shasum":"4d7c5206d5ceaf62f19f14b85223ea6df28d17b9","size":6204,"noattachment":false,"key":"/pipetteur/-/pipetteur-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/pipetteur/download/pipetteur-2.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pipetteur-2.0.2.tgz_1459767048968_0.16790355974808335"},"directories":{},"publish_time":1459767051479,"_cnpm_publish_time":1459767051479,"_hasShrinkwrap":false},"2.0.1":{"name":"pipetteur","version":"2.0.1","description":"A function to extract any colors from a string","main":"pipetteur.js","scripts":{"lint":"jshint .","test":"npm run lint && mocha","coverage":"istanbul cover _mocha -- --reporter dot","travis":"npm run lint && npm run coverage"},"repository":{"type":"git","url":"git+https://github.com/Munter/pipetteur.git"},"keywords":["color","string","match","extract","names","hex","rbg","hsv","hsl"],"author":{"name":"Peter Müller","email":"munter@fumle.dk"},"license":"MIT","bugs":{"url":"https://github.com/Munter/pipetteur/issues"},"homepage":"https://github.com/Munter/pipetteur","dependencies":{"onecolor":"3.0.1","synesthesia":"1.0.0"},"devDependencies":{"coveralls":"2.11.9","istanbul":"0.4.2","jshint":"2.9.1","mocha":"2.4.5","mocha-lcov-reporter":"1.2.0","unexpected":"10.11.1"},"gitHead":"320c421a18ed49689acba2bc1d3b830b5ed19be1","_id":"pipetteur@2.0.1","_shasum":"0ccf58d6c49cb1ae881b530521fcd8c046ba2702","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.1","_npmUser":{"name":"munter","email":"munter@fumle.dk"},"maintainers":[{"name":"munter","email":"munter@fumle.dk"}],"dist":{"shasum":"0ccf58d6c49cb1ae881b530521fcd8c046ba2702","size":6203,"noattachment":false,"key":"/pipetteur/-/pipetteur-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pipetteur/download/pipetteur-2.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pipetteur-2.0.1.tgz_1459549998469_0.8322988129220903"},"directories":{},"publish_time":1459550000589,"_cnpm_publish_time":1459550000589,"_hasShrinkwrap":false},"2.0.0":{"name":"pipetteur","version":"2.0.0","description":"A function to extract any colors from a string","main":"pipetteur.js","scripts":{"lint":"jshint .","test":"npm run lint && mocha","coverage":"istanbul cover _mocha -- --reporter dot","travis":"npm run lint && npm run coverage"},"repository":{"type":"git","url":"git+https://github.com/Munter/pipetteur.git"},"keywords":["color","string","match","extract","names","hex","rbg","hsv","hsl"],"author":{"name":"Peter Müller","email":"munter@fumle.dk"},"license":"MIT","bugs":{"url":"https://github.com/Munter/pipetteur/issues"},"homepage":"https://github.com/Munter/pipetteur","dependencies":{"onecolor":"3.0.0","synesthesia":"1.0.0"},"devDependencies":{"coveralls":"2.11.8","istanbul":"0.4.2","jshint":"2.9.1","mocha":"2.4.5","mocha-lcov-reporter":"1.2.0","unexpected":"10.10.8"},"gitHead":"5b4dc7654f1a67b104a963fadd3a0622f98ccb28","_id":"pipetteur@2.0.0","_shasum":"e2d6d14954f187c997aaf128dc97e0454957145e","_from":".","_npmVersion":"3.8.2","_nodeVersion":"0.10.26","_npmUser":{"name":"munter","email":"munter@fumle.dk"},"maintainers":[{"name":"munter","email":"munter@fumle.dk"}],"dist":{"shasum":"e2d6d14954f187c997aaf128dc97e0454957145e","size":6148,"noattachment":false,"key":"/pipetteur/-/pipetteur-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pipetteur/download/pipetteur-2.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/pipetteur-2.0.0.tgz_1458001798089_0.6316619873978198"},"directories":{},"publish_time":1458001800598,"_cnpm_publish_time":1458001800598,"_hasShrinkwrap":false},"1.0.1":{"name":"pipetteur","version":"1.0.1","description":"A function to extract any colors from a string","main":"pipetteur.js","scripts":{"test":"npm run lint && mocha","lint":"jshint .","travis":"npm run lint && NODE_ENV=development ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter dot && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"},"repository":{"type":"git","url":"https://github.com/Munter/pipetteur.git"},"keywords":["color","string","match","extract","names","hex","rbg","hsv","hsl"],"author":{"name":"Peter Müller","email":"munter@fumle.dk"},"license":"MIT","bugs":{"url":"https://github.com/Munter/pipetteur/issues"},"homepage":"https://github.com/Munter/pipetteur","dependencies":{"onecolor":"^2.4.1","synesthesia":"^1.0.0"},"devDependencies":{"coveralls":"^2.11.1","istanbul":"^0.3.0","jshint":"^2.5.2","mocha":"^1.20.1","mocha-lcov-reporter":"0.0.1","unexpected":"^3.2.3"},"gitHead":"d3fab76b80d36d3ad43ea576954e73c0dfcc7ada","_id":"pipetteur@1.0.1","_shasum":"9e139d6a52569327c9ab84fc69a223757f2b7e5d","_from":".","_npmVersion":"1.4.15","_npmUser":{"name":"munter","email":"munter@fumle.dk"},"maintainers":[{"name":"munter","email":"munter@fumle.dk"}],"dist":{"shasum":"9e139d6a52569327c9ab84fc69a223757f2b7e5d","size":6145,"noattachment":false,"key":"/pipetteur/-/pipetteur-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pipetteur/download/pipetteur-1.0.1.tgz"},"directories":{},"publish_time":1405379939528,"_cnpm_publish_time":1405379939528,"_hasShrinkwrap":false},"1.0.0":{"name":"pipetteur","version":"1.0.0","description":"A function to extract any colors from a string","main":"pipetteur.js","scripts":{"test":"npm run lint && mocha","lint":"jshint .","travis":"npm run lint && NODE_ENV=development ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter dot && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"},"repository":{"type":"git","url":"https://github.com/Munter/pipetteur.git"},"keywords":["color","string","match","extract","names","hex","rbg","hsv","hsl"],"author":{"name":"Peter Müller","email":"munter@fumle.dk"},"license":"MIT","bugs":{"url":"https://github.com/Munter/pipetteur/issues"},"homepage":"https://github.com/Munter/pipetteur","dependencies":{"onecolor":"^2.4.0","synesthesia":"^1.0.0"},"devDependencies":{"coveralls":"^2.11.1","istanbul":"^0.3.0","jshint":"^2.5.2","mocha":"^1.20.1","mocha-lcov-reporter":"0.0.1","unexpected":"^3.2.3"},"gitHead":"6d68f59fe3af55d447d41e76bab1683d928f2dc3","_id":"pipetteur@1.0.0","_shasum":"ffa3ea457a4b34bf6e4d972d981fa907797611dc","_from":".","_npmVersion":"1.4.15","_npmUser":{"name":"munter","email":"munter@fumle.dk"},"maintainers":[{"name":"munter","email":"munter@fumle.dk"}],"dist":{"shasum":"ffa3ea457a4b34bf6e4d972d981fa907797611dc","size":6138,"noattachment":false,"key":"/pipetteur/-/pipetteur-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pipetteur/download/pipetteur-1.0.0.tgz"},"directories":{},"publish_time":1405289637758,"_cnpm_publish_time":1405289637758,"_hasShrinkwrap":false},"0.0.1":{"name":"pipetteur","version":"0.0.1","description":"A function to extract any colors from a string","main":"pipetteur.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/Munter/pipetteur.git"},"keywords":["color","string","match","extract","names","hex","rbg","hsv","hsl"],"author":{"name":"Peter Müller","email":"munter@fumle.dk"},"license":"MIT","bugs":{"url":"https://github.com/Munter/pipetteur/issues"},"homepage":"https://github.com/Munter/pipetteur","dependencies":{"css-color-names":"0.0.1"},"devDependencies":{"mocha":"^1.20.1","unexpected":"^3.2.3"},"gitHead":"69d6c181ef24813e823413f487d6934be2d19fcf","_id":"pipetteur@0.0.1","_shasum":"2f3e1423cde895bf504993c21fb23a651de4c5cc","_from":".","_npmVersion":"1.4.15","_npmUser":{"name":"munter","email":"munter@fumle.dk"},"maintainers":[{"name":"munter","email":"munter@fumle.dk"}],"dist":{"shasum":"2f3e1423cde895bf504993c21fb23a651de4c5cc","size":3719,"noattachment":false,"key":"/pipetteur/-/pipetteur-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pipetteur/download/pipetteur-0.0.1.tgz"},"directories":{},"publish_time":1404772635951,"_cnpm_publish_time":1404772635951,"_hasShrinkwrap":false}},"readme":"Pipetteur\n=========\n[![NPM version](https://badge.fury.io/js/pipetteur.svg)](http://badge.fury.io/js/pipetteur)\n[![Build Status](https://travis-ci.org/Munter/pipetteur.svg?branch=master)](https://travis-ci.org/Munter/pipetteur)\n[![Coverage Status](https://coveralls.io/repos/Munter/pipetteur/badge.svg?style=flat)](https://coveralls.io/r/Munter/pipetteur)\n[![Dependency Status](https://david-dm.org/Munter/pipetteur.svg)](https://david-dm.org/Munter/pipetteur)\n\nA module to find all color syntax substrings in a string with their offsets and their color instance.\nIt's an automated eyedropper tool for your text, css, html, svg etc.\n\nIt takes a single string argument and returns an array of objects like this:\n\n``` javascript\n{\n    match: '#FF0000', // The found color match\n    index: 0, // Zero based index of the match in the string\n    line: 1, // 1-based line number\n    column: 1, // 1-based column number\n    color: <one-color>\n}\n```\n\nThe color object returned is an instance of [one-color](https://github.com/One-com/one-color/#usage), giving you instant access to highlevel color manipulation without having to think about color space conversions.\n\n\nUsage\n-----\n\n``` javascript\nvar pipetteur = require('pipetteur');\n\npipetteur('Roses are rgb(255,0,0), violet are #00f');\n\n[ { index: 10,\n    line: 1,\n    column: 11,\n    match: 'rgb(255,0,0)',\n    color:\n     { _red: 1,\n       _green: 0,\n       _blue: 0,\n       _alpha: 1 } },\n  { index: 24,\n    line: 1,\n    column: 25,\n    match: 'violet',\n    color:\n     { _red: 0.9333333333333333,\n       _green: 0.5098039215686274,\n       _blue: 0.9333333333333333,\n       _alpha: 1 } },\n  { index: 35,\n    line: 1,\n    column: 36,\n    match: '#00f',\n    color:\n     { _red: 0,\n       _green: 0,\n       _blue: 1,\n       _alpha: 1 } } ]\n```\n\n\nLicense\n-------\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 Peter Müller <munter@fumle.dk>\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/Munter/pipetteur","bugs":{"url":"https://github.com/Munter/pipetteur/issues"},"license":"MIT"}