{"name":"kind-of-extra","version":"1.0.0","description":"Extends `kind-of` type check utility with support for promises, generators, streams and errors. Like `kindof(Promise.resolve(1)) === 'promise'` and etc.","repository":{"type":"git","url":"git+https://github.com/tunnckocore/kind-of-extra.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"is-es6-generators":"~1.0.2","is-hybrid":"~1.0.0","is-promise":"~2.0.0","is-stream":"~1.0.1","is-typeof-error":"~1.0.0","kind-of":"~2.0.0"},"devDependencies":{"assertit":"^0.1.0","then-got":"^1.0.7","then-parse-json":"^1.0.2","through2":"^2.0.0"},"keywords":["check","errors","extends","extra","generators","kind","kindof","promises","streams","support","type","typeof","util","utility","validate"],"gitHead":"81148f727985db143aeda7e747a2a1f90a8d3839","bugs":{"url":"https://github.com/tunnckocore/kind-of-extra/issues"},"homepage":"https://github.com/tunnckocore/kind-of-extra#readme","_id":"kind-of-extra@1.0.0","_shasum":"a29abd0af29fbc13b532dd310dd5d3221d448a9e","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"dist":{"shasum":"a29abd0af29fbc13b532dd310dd5d3221d448a9e","tarball":"http://registry-npm.ywwl.com/kind-of-extra/download/kind-of-extra-1.0.0.tgz","integrity":"sha512-l5F3x44zYEtmi/eozfCUqEz190dH37UF8RrLx4EgtPneKZUvtqtByBH/AuWn0ZPR5gUbJvAayD5TlNDjdT89jQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvfxqFSolVBnmpsb1iOSgFBPrS4l7ehgHDa9oHeP0cPgIgYaKaW2E1/IbAWqZo814FslnGirTnoRqOnZaNQkJwJbs="}],"size":4778,"noattachment":false,"key":"/kind-of-extra/-/kind-of-extra-1.0.0.tgz"},"directories":{},"readme":"# [kind-of-extra][author-www-url] [![npmjs.com][npmjs-img]][npmjs-url] [![The MIT License][license-img]][license-url] [![npm downloads][downloads-img]][downloads-url] \n\n> Additional functionality to [kind-of][] type check utility. Support promises, generators, streams, errors.\n\n[![code climate][codeclimate-img]][codeclimate-url] [![standard code style][standard-img]][standard-url] [![travis build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![dependency status][david-img]][david-url]\n\n## Install\n> Install with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i kind-of-extra --save\n```\n\n## Usage\n> For more use-cases see the [tests](./test.js)\n\n```js\nconst kindOfExtra = require('kind-of-extra')\n```\n\n## API\n\n### [kindOfExtra](index.js#L42)\n> Type check utility on steroids.\n\n**Params**\n\n* `val` **{Mixed}**: value to check what type is    \n* `returns` **{String}**: type of the given `val`  \n\n**Example**\n\n```js\nvar kindof = require('kind-of-extra')\n\nkindof(123) // => 'number'\nkindof('foo') // => 'string'\nkindof({a: 'b'}) // => 'object'\nkindof(null) // => 'null'\nkindof(undefined) // => 'undefined'\nkindof(false) // => 'boolean'\nkindof(true) // => 'boolean'\nkindof(new Date()) // => 'date'\n\nvar through2 = require('through2')\nkindof(through2()) // => 'stream'\nkindof(new Error('foo')) // => 'error'\nkindof(Promise.resolve(42)) // => 'promise'\nkindof(function * () { yield 43 }) // => 'generatorfunction'\nkindof((a, b) => { return a + b }) // => 'function'\n```\n\n## Related\n- [always-done](https://www.npmjs.com/package/always-done): Handle completion and errors with elegance! Support for streams, callbacks, promises, child processes, async/await and sync functions. A drop-in replacement for [async-done][] - pass 100… [more](https://github.com/hybridables/always-done#readme) | [homepage](https://github.com/hybridables/always-done#readme \"Handle completion and errors with elegance! Support for streams, callbacks, promises, child processes, async/await and sync functions. A drop-in replacement for [async-done][] - pass 100% of its tests plus more\")\n- [is-kindof](https://www.npmjs.com/package/is-kindof): Check type of given javascript value. Support promises, generators, streams, and native types. Thin wrapper around `kind-of` module. | [homepage](https://github.com/tunnckocore/is-kindof#readme \"Check type of given javascript value. Support promises, generators, streams, and native types. Thin wrapper around `kind-of` module.\")\n- [kind-of-types](https://www.npmjs.com/package/kind-of-types): List of all javascript types. Used and useful for checking, validation, sanitizing and testing. Like isStream, isPromise, isWeakset and etc. | [homepage](https://github.com/tunnckocore/kind-of-types#readme \"List of all javascript types. Used and useful for checking, validation, sanitizing and testing. Like isStream, isPromise, isWeakset and etc.\")\n- [minibase](https://www.npmjs.com/package/minibase): MiniBase is minimalist approach to Base - @node-base, the awesome framework. Foundation for building complex APIs with small units called plugins. Works well with most… [more](https://github.com/node-minibase/minibase#readme) | [homepage](https://github.com/node-minibase/minibase#readme \"MiniBase is minimalist approach to Base - @node-base, the awesome framework. Foundation for building complex APIs with small units called plugins. Works well with most of the already existing [base][] plugins.\")\n- [mukla](https://www.npmjs.com/package/mukla): Small, parallel and fast test framework with suppport for async/await, promises, callbacks, streams and observables. Targets and works at node.js v0.10 and above. | [homepage](https://github.com/tunnckocore/mukla#readme \"Small, parallel and fast test framework with suppport for async/await, promises, callbacks, streams and observables. Targets and works at node.js v0.10 and above.\")\n- [to-callback](https://www.npmjs.com/package/to-callback): Converts result-first callbacks to classic (node.js-style) error-first callbacks with 3 lines of code. Useful when you want to promisify result-first APIs (like emitter.on). Inspired by… [more](https://github.com/tunnckocore/to-callback#readme) | [homepage](https://github.com/tunnckocore/to-callback#readme \"Converts result-first callbacks to classic (node.js-style) error-first callbacks with 3 lines of code. Useful when you want to promisify result-first APIs (like emitter.on). Inspired by [rfpify][] and probably used in it.\")\n- [try-catch-core](https://www.npmjs.com/package/try-catch-core): Low-level package to handle completion and errors of sync or asynchronous functions, using [once][] and [dezalgo][] libs. Useful for and used in higher-level libs such… [more](https://github.com/hybridables/try-catch-core#readme) | [homepage](https://github.com/hybridables/try-catch-core#readme \"Low-level package to handle completion and errors of sync or asynchronous functions, using [once][] and [dezalgo][] libs. Useful for and used in higher-level libs such as [always-done][] to handle completion of anything.\")\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/tunnckoCore/kind-of-extra/issues/new).  \nBut before doing anything, please read the [CONTRIBUTING.md](./CONTRIBUTING.md) guidelines.\n\n## [Charlike Make Reagent](http://j.mp/1stW47C) [![new message to charlike][new-message-img]][new-message-url] [![freenode #charlike][freenode-img]][freenode-url]\n\n[![tunnckoCore.tk][author-www-img]][author-www-url] [![keybase tunnckoCore][keybase-img]][keybase-url] [![tunnckoCore npm][author-npm-img]][author-npm-url] [![tunnckoCore twitter][author-twitter-img]][author-twitter-url] [![tunnckoCore github][author-github-img]][author-github-url]\n\n[always-done]: https://github.com/hybridables/always-done\n[async-done]: https://github.com/gulpjs/async-done\n[base]: https://github.com/node-base/base\n[dezalgo]: https://github.com/npm/dezalgo\n[kind-of]: https://github.com/jonschlinkert/kind-of\n[once]: https://github.com/isaacs/once\n[rfpify]: https://github.com/samverschueren/rfpify\n\n[npmjs-url]: https://www.npmjs.com/package/kind-of-extra\n[npmjs-img]: https://img.shields.io/npm/v/kind-of-extra.svg?label=kind-of-extra\n\n[license-url]: https://github.com/tunnckoCore/kind-of-extra/blob/master/LICENSE\n[license-img]: https://img.shields.io/npm/l/kind-of-extra.svg\n\n[downloads-url]: https://www.npmjs.com/package/kind-of-extra\n[downloads-img]: https://img.shields.io/npm/dm/kind-of-extra.svg\n\n[codeclimate-url]: https://codeclimate.com/github/tunnckoCore/kind-of-extra\n[codeclimate-img]: https://img.shields.io/codeclimate/github/tunnckoCore/kind-of-extra.svg\n\n[travis-url]: https://travis-ci.org/tunnckoCore/kind-of-extra\n[travis-img]: https://img.shields.io/travis/tunnckoCore/kind-of-extra/master.svg\n\n[coveralls-url]: https://coveralls.io/r/tunnckoCore/kind-of-extra\n[coveralls-img]: https://img.shields.io/coveralls/tunnckoCore/kind-of-extra.svg\n\n[david-url]: https://david-dm.org/tunnckoCore/kind-of-extra\n[david-img]: https://img.shields.io/david/tunnckoCore/kind-of-extra.svg\n\n[standard-url]: https://github.com/feross/standard\n[standard-img]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n\n[author-www-url]: http://www.tunnckocore.tk\n[author-www-img]: https://img.shields.io/badge/www-tunnckocore.tk-fe7d37.svg\n\n[keybase-url]: https://keybase.io/tunnckocore\n[keybase-img]: https://img.shields.io/badge/keybase-tunnckocore-8a7967.svg\n\n[author-npm-url]: https://www.npmjs.com/~tunnckocore\n[author-npm-img]: https://img.shields.io/badge/npm-~tunnckocore-cb3837.svg\n\n[author-twitter-url]: https://twitter.com/tunnckoCore\n[author-twitter-img]: https://img.shields.io/badge/twitter-@tunnckoCore-55acee.svg\n\n[author-github-url]: https://github.com/tunnckoCore\n[author-github-img]: https://img.shields.io/badge/github-@tunnckoCore-4183c4.svg\n\n[freenode-url]: http://webchat.freenode.net/?channels=charlike\n[freenode-img]: https://img.shields.io/badge/freenode-%23charlike-5654a4.svg\n\n[new-message-url]: https://github.com/tunnckoCore/ama\n[new-message-img]: https://img.shields.io/badge/ask%20me-anything-green.svg\n\n","publish_time":1435683598957,"_cnpm_publish_time":1435683598957,"dist-tags":{"latest":"1.0.4"}}