{"name":"is-options","version":"1.0.0","description":"WIP - nothing to see here","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":"ce0f870a959ddb0659c724782de291604e519b86","_id":"is-options@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.7.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-ic46TmaW0Acqxrv0wvIOH3y/OshX1qrv5/H62TF3oBADVgvcWEMw/HMzaIQVDRBxE+67s+KUUTPNYE0q8Uf/sA==","shasum":"a476c25de3077988789dd176cd5b1a83ecc9ad2a","tarball":"http://registry-npm.ywwl.com/is-options/download/is-options-1.0.0.tgz","fileCount":6,"unpackedSize":2897,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKkXHSwA7r+KSOBK/uBh+N0myKErVOYQG9Z0vYYwYVmQIgeROJ2nNAFPDC3cw1RvGpwg8C40VxioufOa4wBXL6+U0="}],"size":1705,"noattachment":false,"key":"/is-options/-/is-options-1.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-options_1.0.0_1521317138697_0.5340298864706536"},"_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":1521317138774,"_cnpm_publish_time":1521317138774,"dist-tags":{"latest":"1.0.2"}}