{"name":"is-options","version":"1.0.1","description":"Easily check if input is an options map","main":"index.js","dependencies":{},"devDependencies":{"standard":"^11.0.1","tape":"^4.9.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/is-options.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/is-options/issues"},"homepage":"https://github.com/mafintosh/is-options","gitHead":"37a25dd8cff4b342f5cc0922b58374a4019f6a1e","_id":"is-options@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.7.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-2Xj8sA0zDrAcaoWfBiNmc6VPWAgKDpim0T3J9Djq7vbm1UjwbUWzeuLu/FwC46g3cBbAn0E5R0xwVtOobM6Xxg==","shasum":"25b13036030fafca858918124c24048f788be04f","tarball":"http://registry-npm.ywwl.com/is-options/download/is-options-1.0.1.tgz","fileCount":6,"unpackedSize":2903,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHyFGe2BQxN5iIuqk0olZBnxxVmm5Kes2+b3YWCYTdJfAiEAkxd8yXjey1IrBWIaOgr8loxxGH/XkUmriN8OgEurhjI="}],"size":1693,"noattachment":false,"key":"/is-options/-/is-options-1.0.1.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-options_1.0.1_1521317410762_0.008471231018426728"},"_hasShrinkwrap":false,"readme":"# is-options\n\nEasily check if input is an options map\n\n```\nnpm install is-options\n```\n\n[![Build Status](https://travis-ci.org/mafintosh/is-options.svg?branch=master)](https://travis-ci.org/mafintosh/is-options)\n\n## Usage\n\n``` js\nvar isOptions = require('is-options')\n\nthing('', {foo: true}) // key='', opts={foo: true}\nthing({foo: true}) // key=undefined, opts={foo: true}\nthing(Buffer.from('buf'), {foo: true}) // key=Buffer('buf'), opts={foo: true}\n\nfunction thing (optionalKey, opts) {\n  if (isOptions(optionalKey)) {\n    opts = optionalKey\n    optionalKey = undefined\n  }\n\n  console.log('key', optionalKey)\n  console.log('options', opts)\n}\n```\n\n## API\n\n#### `bool = isOptions(obj)`\n\nReturns true is `obj` is an object and not a buffer\n\n## License\n\nMIT\n","publish_time":1521317410814,"_cnpm_publish_time":1521317410814,"dist-tags":{"latest":"1.0.2"}}