HEX
Server: Apache/2.4.41
System: Linux mainweb 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: nationalmedicaregrp (1119)
PHP: 8.3.7
Disabled: exec,passthru,shell_exec,system,popen,proc_open,pcntl_exec
Upload Files
File: /home/ubuntu/.npm/registry.npmjs.org/extract-opts/.cache.json
{"_id":"extract-opts","_rev":"15-284311164906c559ae311f96550ae1da","name":"extract-opts","description":"Extract the options and callback from a function's arguments easily","dist-tags":{"latest":"3.3.1"},"versions":{"2.0.0":{"name":"extract-opts","version":"2.0.0","description":"Extract the options and callback from a function's arguments easily","homepage":"https://github.com/bevry/extract-opts","keywords":["opts","options","cb","callback","next","flow","args","optional","arguments","extract"],"author":{"name":"Bevry Pty Ltd","email":"[email protected]","url":"http://bevry.me"},"maintainers":[{"name":"balupton","email":"[email protected]"}],"contributors":[{"name":"Benjamin Lupton","email":"[email protected]","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/extract-opts/issues"},"repository":{"type":"git","url":"http://github.com/bevry/extract-opts.git"},"engines":{"node":">=0.4"},"dependencies":{"typechecker":"~2.0.1"},"devDependencies":{"coffee-script":"~1.6.2","joe":"~1.2.0","joe-reporter-console":"~1.2.1","chai":"~1.5.0","eachr":"~2.0.2"},"directories":{"lib":"./out/lib"},"scripts":{"test":"node ./out/test/extract-opts-test.js"},"main":"./out/lib/extract-opts.js","_id":"[email protected]","dist":{"shasum":"0de4098b6c6d958f9b8d7a1fb0f3ad7a8159107d","tarball":"https://registry.npmjs.org/extract-opts/-/extract-opts-2.0.0.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"balupton","email":"[email protected]"}},"2.2.0":{"name":"extract-opts","version":"2.2.0","description":"Extract the options and callback from a function's arguments easily","homepage":"https://github.com/bevry/extract-opts","keywords":["opts","options","cb","callback","next","flow","args","optional","arguments","extract"],"author":{"name":"Bevry Pty Ltd","email":"[email protected]","url":"http://bevry.me"},"maintainers":[{"name":"balupton","email":"[email protected]"}],"contributors":[{"name":"Benjamin Lupton","email":"[email protected]","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/extract-opts/issues"},"repository":{"type":"git","url":"http://github.com/bevry/extract-opts.git"},"engines":{"node":">=0.4"},"dependencies":{"typechecker":"~2.0.1"},"devDependencies":{"coffee-script":"~1.6.2","joe":"~1.2.0","joe-reporter-console":"~1.2.1","chai":"~1.5.0","eachr":"~2.0.2"},"directories":{"lib":"./out/lib"},"scripts":{"test":"node ./out/test/extract-opts-test.js"},"main":"./out/lib/extract-opts.js","_id":"[email protected]","dist":{"shasum":"1fa28eba7352c6db480f885ceb71a46810be6d7d","tarball":"https://registry.npmjs.org/extract-opts/-/extract-opts-2.2.0.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"balupton","email":"[email protected]"}},"3.0.0":{"title":"Extract Options","name":"extract-opts","version":"3.0.0","description":"Extract the options and callback from a function's arguments easily","homepage":"https://github.com/bevry/extract-opts","keywords":["opts","options","cb","callback","next","flow","args","optional","arguments","extract"],"badges":{"travis":true,"npm":true,"npmdownloads":true,"david":true,"daviddev":true,"gratipay":"bevry","flattr":"344188/balupton-on-Flattr","paypal":"QB8GQPZAH84N6","bitcoin":"https://coinbase.com/checkouts/9ef59f5479eec1d97d63382c9ebcb93a","wishlist":"http://amzn.com/w/2F8TXKSNAFG4V"},"author":{"name":"2013+ Bevry Pty Ltd","email":"[email protected]","url":"http://bevry.me"},"maintainers":[{"name":"balupton","email":"[email protected]"}],"contributors":[{"name":"Benjamin Lupton","email":"[email protected]","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/extract-opts/issues"},"repository":{"type":"git","url":"http://github.com/bevry/extract-opts.git"},"engines":{"node":">=0.4"},"dependencies":{"typechecker":"^2.0.8"},"devDependencies":{"coffee-script":"^1.9.1","joe":"^1.6.0","joe-reporter-console":"^1.2.1","chai":"^2.1.1","eachr":"^2.0.4"},"directories":{"lib":"./out/lib"},"scripts":{"test":"node ./out/test/extract-opts-test.js"},"main":"./out/lib/extract-opts.js","cakeConfiguration":{"COFFEE_SRC_PATH":"src"},"gitHead":"f8173ef3e1130a0008c6d3c1a6cb4d74c3b6d804","_id":"[email protected]","_shasum":"e293942b3c5665085aa02ee34606a9507d4286ff","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"balupton","email":"[email protected]"},"dist":{"shasum":"e293942b3c5665085aa02ee34606a9507d4286ff","tarball":"https://registry.npmjs.org/extract-opts/-/extract-opts-3.0.0.tgz"}},"3.0.1":{"title":"Extract Options","name":"extract-opts","version":"3.0.1","description":"Extract the options and callback from a function's arguments easily","homepage":"https://github.com/bevry/extract-opts","browsers":true,"keywords":["opts","options","cb","callback","next","flow","args","optional","arguments","extract"],"badges":{"travis":true,"npm":true,"npmdownloads":true,"david":true,"daviddev":true,"gratipay":"bevry","flattr":"344188/balupton-on-Flattr","paypal":"QB8GQPZAH84N6","bitcoin":"https://coinbase.com/checkouts/9ef59f5479eec1d97d63382c9ebcb93a","wishlist":"http://amzn.com/w/2F8TXKSNAFG4V"},"author":{"name":"2013+ Bevry Pty Ltd","email":"[email protected]","url":"http://bevry.me"},"maintainers":[{"name":"balupton","email":"[email protected]"}],"contributors":[{"name":"Benjamin Lupton","email":"[email protected]","url":"https://github.com/balupton"},{"name":"sfrdmn","url":"https://github.com/sfrdmn"}],"bugs":{"url":"https://github.com/bevry/extract-opts/issues"},"repository":{"type":"git","url":"http://github.com/bevry/extract-opts.git"},"engines":{"node":">=0.4"},"dependencies":{"typechecker":"^2.0.8"},"devDependencies":{"chai":"^2.1.1","coffee-script":"^1.9.1","eachr":"^2.0.4","joe":"^1.6.0","joe-reporter-console":"^1.2.1","projectz":"^0.5.0"},"directories":{"lib":"./out/lib"},"scripts":{"test":"node ./out/test/extract-opts-test.js"},"main":"./out/lib/extract-opts.js","cakeConfiguration":{"COFFEE_SRC_PATH":"src"},"license":{"type":""},"gitHead":"76592401365aa7c03791a0239b1bfe6b305c4d68","_id":"[email protected]","_shasum":"0dfd896bbce88d382c92363e2c926808ad40bf7d","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"balupton","email":"[email protected]"},"dist":{"shasum":"0dfd896bbce88d382c92363e2c926808ad40bf7d","tarball":"https://registry.npmjs.org/extract-opts/-/extract-opts-3.0.1.tgz"}},"3.1.0":{"title":"Extract Options & Callback","name":"extract-opts","version":"3.1.0","description":"Extract the options and callback from a function's arguments easily","homepage":"https://github.com/bevry/extract-opts","browsers":true,"license":"MIT","keywords":["opts","options","cb","callback","next","flow","args","optional","arguments","extract"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","slackin","patreon","gratipay","flattr","paypal","bitcoin","wishlist"],"config":{"patreonUsername":"bevry","gratipayUsername":"bevry","flattrUsername":"balupton","paypalURL":"https://bevry.me/paypal","bitcoinURL":"https://bevry.me/bitcoin","wishlistURL":"https://bevry.me/wishlist","slackinURL":"https://slack.bevry.me"}},"author":{"name":"2013+ Bevry Pty Ltd","email":"[email protected]","url":"http://bevry.me"},"maintainers":[{"name":"balupton","email":"[email protected]"}],"contributors":[{"name":"Benjamin Lupton","email":"[email protected]","url":"http://balupton.com"},{"name":"Sean Fridman","email":"[email protected]","url":"http://seanfridman.com"}],"bugs":{"url":"https://github.com/bevry/extract-opts/issues"},"repository":{"type":"git","url":"git+ssh://[email protected]/bevry/extract-opts.git"},"engines":{"node":">=0.12"},"main":"./esnextguardian.js","browser":"./es5/lib/index.js","jspm":{"main":"./es5/lib/index.js"},"dependencies":{"esnextguardian":"^1.2.0","typechecker":"^4.0.1"},"devDependencies":{"assert-helpers":"^4.1.0","babel-cli":"^6.4.0","babel-preset-es2015":"^6.3.13","eachr":"^3.1.0","eslint":"^1.10.3","joe":"^1.6.0","joe-reporter-console":"^1.2.1","projectz":"^1.0.9"},"scripts":{"clean":"node --harmony nakefile.js clean","setup":"node --harmony nakefile.js setup","compile":"node --harmony nakefile.js compile","watch":"node --harmony nakefile.js watch","verify":"node --harmony nakefile.js verify","meta":"node --harmony nakefile.js meta","prepare":"node --harmony nakefile.js prepare","release":"node --harmony nakefile.js release","test":"node --harmony ./es5/test/index-test.js"},"nakeConfiguration":{"BABEL_SRC_PATH":"esnext","ESLINT_SRC_PATH":"esnext","YUIDOC_SRC_PATH":"esnext"},"gitHead":"d1aa3a9b172406cdbca2c8d6f6300545e671c9b1","_id":"[email protected]","_shasum":"99600fb031efc33153749499d350db6ed3f98cfa","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.4.1","_npmUser":{"name":"balupton","email":"[email protected]"},"dist":{"shasum":"99600fb031efc33153749499d350db6ed3f98cfa","tarball":"https://registry.npmjs.org/extract-opts/-/extract-opts-3.1.0.tgz"},"directories":{}},"3.2.0":{"title":"Extract Options & Callback","name":"extract-opts","version":"3.2.0","description":"Extract the options and callback from a function's arguments easily","homepage":"https://github.com/bevry/extract-opts","license":"MIT","keywords":["opts","options","cb","callback","next","flow","args","optional","arguments","extract"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","slackin","patreon","gratipay","flattr","paypal","bitcoin","wishlist"],"config":{"patreonUsername":"bevry","gratipayUsername":"bevry","flattrUsername":"balupton","paypalURL":"https://bevry.me/paypal","bitcoinURL":"https://bevry.me/bitcoin","wishlistURL":"https://bevry.me/wishlist","slackinURL":"https://slack.bevry.me"}},"author":{"name":"2013+ Bevry Pty Ltd","email":"[email protected]","url":"http://bevry.me"},"maintainers":[{"name":"balupton","email":"[email protected]"}],"contributors":[{"name":"Benjamin Lupton","email":"[email protected]","url":"http://balupton.com"},{"name":"Sean Fridman","email":"[email protected]","url":"http://seanfridman.com"}],"bugs":{"url":"https://github.com/bevry/extract-opts/issues"},"repository":{"type":"git","url":"git+ssh://[email protected]/bevry/extract-opts.git"},"engines":{"node":">=0.10"},"browsers":true,"main":"./esnextguardian.js","browser":"./es5/lib/index.js","jspm":{"main":"./es5/lib/index.js"},"dependencies":{"eachr":"^3.1.0","esnextguardian":"^1.2.0","typechecker":"^4.0.1"},"devDependencies":{"assert-helpers":"^4.1.0","babel-cli":"^6.4.0","babel-preset-es2015":"^6.3.13","eachr":"^3.1.0","eslint":"^1.10.3","joe":"^1.6.0","joe-reporter-console":"^1.2.1","projectz":"^1.0.9"},"scripts":{"clean":"node --harmony nakefile.js clean","setup":"node --harmony nakefile.js setup","compile":"node --harmony nakefile.js compile","watch":"node --harmony nakefile.js watch","verify":"node --harmony nakefile.js verify","meta":"node --harmony nakefile.js meta","prepare":"node --harmony nakefile.js prepare","release":"node --harmony nakefile.js release","test":"node --harmony ./es5/test/index-test.js"},"nakeConfiguration":{"BABEL_SRC_PATH":"esnext","ESLINT_SRC_PATH":"esnext","YUIDOC_SRC_PATH":"esnext"},"gitHead":"bfb63aed7fe9472149a4b63db7d6192d86792da1","_id":"[email protected]","_shasum":"2274c238f8b162a6893aefb392080275d05e4553","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.4.1","_npmUser":{"name":"balupton","email":"[email protected]"},"dist":{"shasum":"2274c238f8b162a6893aefb392080275d05e4553","tarball":"https://registry.npmjs.org/extract-opts/-/extract-opts-3.2.0.tgz"},"directories":{}},"3.3.0":{"title":"Extract Options & Callback","name":"extract-opts","version":"3.3.0","description":"Extract the options and callback from a function's arguments easily","homepage":"https://github.com/bevry/extract-opts","license":"MIT","keywords":["opts","options","cb","callback","next","flow","args","optional","arguments","extract"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","slackin","patreon","gratipay","flattr","paypal","bitcoin","wishlist"],"config":{"patreonUsername":"bevry","gratipayUsername":"bevry","flattrUsername":"balupton","paypalURL":"https://bevry.me/paypal","bitcoinURL":"https://bevry.me/bitcoin","wishlistURL":"https://bevry.me/wishlist","slackinURL":"https://slack.bevry.me"}},"author":{"name":"2013+ Bevry Pty Ltd","email":"[email protected]","url":"http://bevry.me"},"maintainers":[{"name":"balupton","email":"[email protected]"}],"contributors":[{"name":"Benjamin Lupton","email":"[email protected]","url":"https://balupton.com"},{"name":"Sean Fridman","email":"[email protected]","url":"http://seanfridman.com"}],"bugs":{"url":"https://github.com/bevry/extract-opts/issues"},"repository":{"type":"git","url":"git+ssh://[email protected]/bevry/extract-opts.git"},"engines":{"node":">=0.10"},"editions":[{"description":"Source + ESNext + Require","entry":"source/index.js","directory":"source","syntaxes":["javascript","esnext","require","let","const","destructuring","defaults","template strings"]},{"description":"Babel Compiled + ES2015 + Require","entry":"es2015/index.js","directory":"es2015","syntaxes":["javascript","es2015","require"]}],"main":"index.js","browser":"es2015/index.js","dependencies":{"eachr":"^3.2.0","editions":"^1.1.1","typechecker":"^4.3.0"},"devDependencies":{"assert-helpers":"^4.2.0","babel-cli":"^6.9.0","babel-preset-es2015":"^6.9.0","eachr":"^3.2.0","eslint":"^2.10.2","eslint-plugin-babel":"^3.2.0","joe":"^1.6.0","joe-reporter-console":"^1.2.1","projectz":"^1.1.5"},"scripts":{"setup":"npm install","clean":"rm -Rf ./docs ./es2015","compile":"npm run compile:es2015","compile:es2015":"babel ./source --out-dir ./es2015 --presets es2015","meta":"npm run meta:projectz","meta:projectz":"projectz compile","prepare":"npm run compile && npm run test && npm run meta","release":"npm run prepare && npm run release:publish && npm run release:tag && npm run release:push","release:publish":"npm publish","release:tag":"git tag v$npm_package_version -a","release:push":"git push origin master && git push origin --tags","pretest":"npm run test:eslint","test:eslint":"eslint ./source","test":"node --harmony -e \"require('editions').requirePackage(process.cwd(), require, 'test.js')\""},"gitHead":"b84142388fea341238f113a5fce7d6331e047d07","_id":"[email protected]","_shasum":"73d98215fbab90151958ab025decb4f0564c1a3c","_from":".","_npmVersion":"3.8.7","_nodeVersion":"6.0.0","_npmUser":{"name":"balupton","email":"[email protected]"},"dist":{"shasum":"73d98215fbab90151958ab025decb4f0564c1a3c","tarball":"https://registry.npmjs.org/extract-opts/-/extract-opts-3.3.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/extract-opts-3.3.0.tgz_1464344676353_0.084539013216272"},"directories":{}},"3.3.1":{"title":"Extract Options & Callback","name":"extract-opts","version":"3.3.1","description":"Extract the options and callback from a function's arguments easily","homepage":"https://github.com/bevry/extract-opts","license":"MIT","keywords":["opts","options","cb","callback","next","flow","args","optional","arguments","extract"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","slackin","patreon","gratipay","flattr","paypal","bitcoin","wishlist"],"config":{"patreonUsername":"bevry","gratipayUsername":"bevry","flattrUsername":"balupton","paypalURL":"https://bevry.me/paypal","bitcoinURL":"https://bevry.me/bitcoin","wishlistURL":"https://bevry.me/wishlist","slackinURL":"https://slack.bevry.me"}},"author":{"name":"2013+ Bevry Pty Ltd","email":"[email protected]","url":"http://bevry.me"},"maintainers":[{"name":"balupton","email":"[email protected]"}],"contributors":[{"name":"Benjamin Lupton","email":"[email protected]","url":"https://balupton.com"},{"name":"Sean Fridman","email":"[email protected]","url":"http://seanfridman.com"}],"bugs":{"url":"https://github.com/bevry/extract-opts/issues"},"repository":{"type":"git","url":"git+ssh://[email protected]/bevry/extract-opts.git"},"engines":{"node":">=0.10"},"editions":[{"description":"Source + ESNext + Require","entry":"source/index.js","directory":"source","syntaxes":["javascript","esnext","require","const","destructuring","defaults"]},{"description":"Babel Compiled + ES2015 + Require","entry":"es2015/index.js","directory":"es2015","syntaxes":["javascript","es2015","require"]}],"main":"index.js","browser":"es2015/index.js","dependencies":{"eachr":"^3.2.0","editions":"^1.1.1","typechecker":"^4.3.0"},"devDependencies":{"assert-helpers":"^4.2.0","babel-cli":"^6.9.0","babel-preset-es2015":"^6.9.0","eachr":"^3.2.0","eslint":"^2.10.2","eslint-plugin-babel":"^3.2.0","joe":"^1.6.0","joe-reporter-console":"^1.2.1","projectz":"^1.1.5"},"scripts":{"setup":"npm install","clean":"rm -Rf ./docs ./es2015","compile":"npm run compile:es2015","compile:es2015":"babel ./source --out-dir ./es2015 --presets es2015","meta":"npm run meta:projectz","meta:projectz":"projectz compile","prepare":"npm run compile && npm run test && npm run meta","release":"npm run prepare && npm run release:publish && npm run release:tag && npm run release:push","release:publish":"npm publish","release:tag":"git tag v$npm_package_version -a","release:push":"git push origin master && git push origin --tags","pretest":"npm run test:eslint","test:eslint":"eslint ./source","test":"node --harmony -e \"require('editions').requirePackage(process.cwd(), require, 'test.js')\""},"gitHead":"87e349bbf92a6f95d1ecc8b064a1631def105dc8","_id":"[email protected]","_shasum":"5abbedc98c0d5202e3278727f9192d7e086c6be1","_from":".","_npmVersion":"3.8.7","_nodeVersion":"6.0.0","_npmUser":{"name":"balupton","email":"[email protected]"},"dist":{"shasum":"5abbedc98c0d5202e3278727f9192d7e086c6be1","tarball":"https://registry.npmjs.org/extract-opts/-/extract-opts-3.3.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/extract-opts-3.3.1.tgz_1464344858178_0.15363493445329368"},"directories":{}}},"readme":"<!-- TITLE/ -->\n\n<h1>Extract Options & Callback</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.org/bevry/extract-opts\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/bevry/extract-opts/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/extract-opts\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/extract-opts.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/extract-opts\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/extract-opts.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/extract-opts\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/extract-opts.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/extract-opts#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/extract-opts.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-slackin\"><a href=\"https://slack.bevry.me\" title=\"Join this project's slack community\"><img src=\"https://slack.bevry.me/badge.svg\" alt=\"Slack community badge\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"http://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-gratipay\"><a href=\"https://www.gratipay.com/bevry\" title=\"Donate weekly to this project using Gratipay\"><img src=\"https://img.shields.io/badge/gratipay-donate-yellow.svg\" alt=\"Gratipay donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-bitcoin\"><a href=\"https://bevry.me/bitcoin\" title=\"Donate once-off to this project using Bitcoin\"><img src=\"https://img.shields.io/badge/bitcoin-donate-yellow.svg\" alt=\"Bitcoin donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nExtract the options and callback from a function's arguments easily\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>NPM</h3></a><ul>\n<li>Install: <code>npm install --save extract-opts</code></li>\n<li>Module: <code>require('extract-opts')</code></li></ul>\n\n<a href=\"http://browserify.org\" title=\"Browserify lets you require('modules') in the browser by bundling up all of your dependencies\"><h3>Browserify</h3></a><ul>\n<li>Install: <code>npm install --save extract-opts</code></li>\n<li>Module: <code>require('extract-opts')</code></li>\n<li>CDN URL: <code>//wzrd.in/bundle/[email protected]</code></li></ul>\n\n<a href=\"http://enderjs.com\" title=\"Ender is a full featured package manager for your browser\"><h3>Ender</h3></a><ul>\n<li>Install: <code>ender add extract-opts</code></li>\n<li>Module: <code>require('extract-opts')</code></li></ul>\n\n<h3><a href=\"https://github.com/bevry/editions\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>extract-opts</code> aliases <code>extract-opts/index.js</code> which uses <a href=\"https://github.com/bevry/editions\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a> to automatically select the correct edition for the consumers environment</li>\n<li><code>extract-opts/source/index.js</code> is Source + <a href=\"https://babeljs.io/docs/learn-es2015/\" title=\"ECMAScript Next\">ESNext</a> + <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a></li>\n<li><code>extract-opts/es2015/index.js</code> is <a href=\"https://babeljs.io\" title=\"The compiler for writing next generation JavaScript\">Babel</a> Compiled + <a href=\"http://babeljs.io/docs/plugins/preset-es2015/\" title=\"ECMAScript 2015\">ES2015</a> + <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a></li></ul>\n\n<p>Older environments may need <a href=\"https://babeljs.io/docs/usage/polyfill/\" title=\"A polyfill that emulates missing ECMAScript environment features\">Babel's Polyfill</a> or something similar.</p>\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n``` javascript\nvar log = console.log.bind(console)\nvar extractOptsAndCallback = require('extract-opts')\n\n// fs.readFile(filename, [options], callback)\nfunction readFile (filename, opts, next) {\n\t// Extract options and callback\n\tvar args = extractOptsAndCallback(opts, next)\n\topts = args[0]\n\tnext = args[1]\n\n\t// Forward for simplicities sake\n\trequire('fs').readFile(filename, opts, next)\n}\n\n// Test it\nreadFile('package.json', log)          // works with no options\nreadFile('package.json', null, log)    // works with null options\nreadFile('package.json', {next: log})   // works with just options\n```\n\n### Customisation\n\nExtract Options and Callback also supports a third argument.\nYou can use this third argument to customize the `completionCallbackNames` property that defaults to `['next']`.\nThis is useful if your completion callback has other names besides `next`.\nAllowing you to do the following:\n\n``` javascript\nvar log = console.log.bind(console)\nfunction extractOptsAndCallback (opts, next, config) {\n\tif ( config == null )  config = {}\n\tif ( config.completionCallbackNames == null )  config.completionCallbackNames = ['next', 'complete', 'done']\n\treturn require('extract-opts')(opts, next, config)\n}\n\n# The readFile method as before\n\n# Test it\nreadFile('package.json', {next: log})        # works the standard completion callback name\nreadFile('package.json', {complete: log})    # works with our custom completion callback name\nreadFile('package.json', {done: log})        # works with our custom completion callback name\n```\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/extract-opts/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/extract-opts/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/extract-opts/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/extract-opts\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-patreon\"><a href=\"http://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-gratipay\"><a href=\"https://www.gratipay.com/bevry\" title=\"Donate weekly to this project using Gratipay\"><img src=\"https://img.shields.io/badge/gratipay-donate-yellow.svg\" alt=\"Gratipay donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-bitcoin\"><a href=\"https://bevry.me/bitcoin\" title=\"Donate once-off to this project using Bitcoin\"><img src=\"https://img.shields.io/badge/bitcoin-donate-yellow.svg\" alt=\"Bitcoin donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/extract-opts/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/extract-opts\">view contributions</a></li>\n<li><a href=\"http://seanfridman.com\">Sean Fridman</a> — <a href=\"https://github.com/bevry/extract-opts/commits?author=sfrdmn\" title=\"View the GitHub contributions of Sean Fridman on repository bevry/extract-opts\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/extract-opts/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2013+ <a href=\"http://bevry.me\">Bevry Pty Ltd</a></li>\n<li>Copyright &copy; 2011+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","maintainers":[{"email":"[email protected]","name":"balupton"},{"email":"[email protected]","name":"bevryme"}],"time":{"modified":"2019-01-03T20:47:50.487Z","created":"2013-06-23T06:57:31.630Z","2.0.0":"2013-06-23T06:57:36.831Z","2.2.0":"2013-06-24T03:16:37.343Z","3.0.0":"2015-03-13T10:07:31.301Z","3.0.1":"2015-03-13T10:11:29.715Z","3.1.0":"2016-01-14T10:34:10.591Z","3.2.0":"2016-01-15T03:29:17.451Z","3.3.0":"2016-05-27T10:24:39.329Z","3.3.1":"2016-05-27T10:27:38.621Z"},"author":{"name":"2013+ Bevry Pty Ltd","email":"[email protected]","url":"http://bevry.me"},"repository":{"type":"git","url":"git+ssh://[email protected]/bevry/extract-opts.git"},"users":{"markstos":true},"homepage":"https://github.com/bevry/extract-opts","keywords":["opts","options","cb","callback","next","flow","args","optional","arguments","extract"],"contributors":[{"name":"Benjamin Lupton","email":"[email protected]","url":"https://balupton.com"},{"name":"Sean Fridman","email":"[email protected]","url":"http://seanfridman.com"}],"bugs":{"url":"https://github.com/bevry/extract-opts/issues"},"readmeFilename":"README.md","license":"MIT","_etag":"W/\"feed5863681cf063a1952602d2f4937a\"","_lastModified":"Thu, 03 Jan 2019 20:47:51 GMT"}