{"name":"toxic-utils","version":"0.2.0","description":"utils","main":"lib/index.js","module":"lib/index.mjs","jsnext:main":"lib/index.mjs","browser":"lib/index.browser.js","scripts":{"test":"jest --coverage","start":"jest --coverage --watch","flow":"flow","lint":"flow && eslint ./src --fix","precommit":"npm run lint","prepush":"npm run test","build":"npm run b-common && npm run b-es && npm run b-umd && npm run b-min","b-common":"rollup -c build/rollup.config.common.js","b-es":"rollup -c build/rollup.config.es.js","b-umd":"rollup -c build/rollup.config.umd.js","b-min":"rollup -c build/rollup.config.min.js","doc":"documentation readme  src/index.js --section=doc --github=true --project-version=true"},"repository":{"type":"git","url":"git+https://github.com/toxic-johann/toxic-utils.git"},"keywords":["utils"],"author":{"name":"toxic-johann"},"license":"MIT","bugs":{"url":"https://github.com/toxic-johann/toxic-utils/issues"},"homepage":"https://github.com/toxic-johann/toxic-utils#readme","devDependencies":{"babel-eslint":"^8.0.2","babel-jest":"^21.0.0","babel-plugin-transform-runtime":"^6.23.0","babel-preset-es2015-rollup":"^3.0.0","babel-preset-flow":"^6.23.0","babel-preset-latest":"^6.24.1","documentation":"^5.3.0","eslint":"^4.11.0","eslint-plugin-flowtype":"^2.35.1","eslint-plugin-jest":"^21.3.2","flow-bin":"^0.59.0","husky":"^0.14.1","jest":"^21.0.1","rollup":"^0.51.8","rollup-plugin-babel":"^3.0.2","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-flow-no-whitespace":"^1.0.0","rollup-plugin-includepaths":"^0.2.2","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-uglify":"^2.0.1"},"jest":{"modulePaths":["src"],"moduleFileExtensions":["js"],"moduleDirectories":["node_modules","bower_components"],"transform":{".*":"babel-jest"}},"dependencies":{"babel-runtime":"^6.26.0","toxic-predicate-functions":"^0.1.4"},"gitHead":"3efe085529978818006cc512496b7667ce536de4","_id":"toxic-utils@0.2.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"toxicjohann","email":"353904974@qq.com"},"dist":{"integrity":"sha512-3AFj4RS6sSTolHcE2dKlihvghxeUKb58r3wltHJYRtz6oRhxgl39TGvqpxeSo2uvbYvK0r8qV9spC932uY+0wg==","shasum":"c2b487c206acb5038896eda3c2e4d426f4e56298","tarball":"http://registry-npm.ywwl.com/toxic-utils/download/toxic-utils-0.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0llBF6/SCcMiezJVdB1RXRszH2AI3nTsMC77UqBeQLAIgBLgbnXcqWUq7zYvijc+6vMAzlXRUibdJlQ3WEf0atD0="}],"size":28009,"noattachment":false,"key":"/toxic-utils/-/toxic-utils-0.2.0.tgz"},"maintainers":[{"name":"toxicjohann","email":"353904974@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/toxic-utils-0.2.0.tgz_1511626131629_0.1524733453989029"},"directories":{},"readme":"# toxic-utils\n\n[![Build Status](https://img.shields.io/travis/toxic-johann/toxic-utils/master.svg?style=flat-square)](https://travis-ci.org/toxic-johann/toxic-utils.svg?branch=master)\n[![Coverage Status](https://img.shields.io/coveralls/toxic-johann/toxic-utils/master.svg?style=flat-square)](https://coveralls.io/github/toxic-johann/toxic-utils?branch=master)\n[![npm](https://img.shields.io/npm/v/toxic-utils.svg?colorB=brightgreen&style=flat-square)](https://www.npmjs.com/package/toxic-utils)\n[![dependency Status](https://david-dm.org/toxic-johann/toxic-utils.svg)](https://david-dm.org/toxic-johann/toxic-utils)\n[![devDependency Status](https://david-dm.org/toxic-johann/toxic-utils/dev-status.svg)](https://david-dm.org/toxic-johann/toxic-utils?type=dev) [![Greenkeeper badge](https://badges.greenkeeper.io/toxic-johann/toxic-utils.svg)](https://greenkeeper.io/)\n\nutils collection\n\n## get started\n\n```shell\nnpm install toxic-utils --save\n```\n\nif you are using `flow`, you should import our flow defination, by adding this to your `.flowconfig`.\n\n```ya\n[ignore]\n\n[include]\n\n[libs]\n./node_modules/toxic-utils/lib/index.flow.js\n[options]\n\n[lints]\n```\n\n## doc\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### genTraversalHandler\n\n[src/index.js:8-20](https://github.com/toxic-johann/toxic-utils/blob/2b6844986d149e8d81d0c29eb28c4d5a2b92e5f6/src/index.js#L8-L20 \"Source code on GitHub\")\n\nthe handler to generate an deep traversal handler\n\n**Parameters**\n\n-   `fn` **[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** the function you wanna run when you reach in the deep property\n\nReturns **[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** the handler\n\n### deepClone\n\n[src/index.js:27-32](https://github.com/toxic-johann/toxic-utils/blob/2b6844986d149e8d81d0c29eb28c4d5a2b92e5f6/src/index.js#L27-L32 \"Source code on GitHub\")\n\ndeeply clone an object\n\n**Parameters**\n\n-   `source` **([Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) \\| [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object))** if you pass in other type, it will throw an error\n\nReturns **clone-target** the new Object\n\n### deepAssign\n\n[src/index.js:38-50](https://github.com/toxic-johann/toxic-utils/blob/2b6844986d149e8d81d0c29eb28c4d5a2b92e5f6/src/index.js#L38-L50 \"Source code on GitHub\")\n\nmerge multiple objects\n\n**Parameters**\n\n-   `args` **...[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** [description]\n\nReturns **merge-object** [description]\n\n### camelize\n\n[src/index.js:57-63](https://github.com/toxic-johann/toxic-utils/blob/2b6844986d149e8d81d0c29eb28c4d5a2b92e5f6/src/index.js#L57-L63 \"Source code on GitHub\")\n\ncamelize any string, e.g hello world -> helloWorld\n\n**Parameters**\n\n-   `str` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** only accept string!\n-   `isBig` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** \n\nReturns **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** camelize string\n\n### hypenate\n\n[src/index.js:69-71](https://github.com/toxic-johann/toxic-utils/blob/2b6844986d149e8d81d0c29eb28c4d5a2b92e5f6/src/index.js#L69-L71 \"Source code on GitHub\")\n\nhypenate any string e.g hello world -> hello-world\n\n**Parameters**\n\n-   `str` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** only accept string\n\nReturns **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\n### bind\n\n[src/index.js:78-90](https://github.com/toxic-johann/toxic-utils/blob/2b6844986d149e8d81d0c29eb28c4d5a2b92e5f6/src/index.js#L78-L90 \"Source code on GitHub\")\n\nbind the function with some context. we have some fallback strategy here\n\n**Parameters**\n\n-   `fn` **[function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** the function which we need to bind the context on\n-   `context` **any** the context object\n\nReturns **[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** \n\n### uuid\n\n[src/index.js:95-97](https://github.com/toxic-johann/toxic-utils/blob/2b6844986d149e8d81d0c29eb28c4d5a2b92e5f6/src/index.js#L95-L97 \"Source code on GitHub\")\n\ngenerate an uuid\n\nReturns **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\n### S4\n\n[src/index.js:101-103](https://github.com/toxic-johann/toxic-utils/blob/2b6844986d149e8d81d0c29eb28c4d5a2b92e5f6/src/index.js#L101-L103 \"Source code on GitHub\")\n\ngenerate an random number which length is 4\n\nReturns **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\n### rand\n\n[src/index.js:108-114](https://github.com/toxic-johann/toxic-utils/blob/2b6844986d149e8d81d0c29eb28c4d5a2b92e5f6/src/index.js#L108-L114 \"Source code on GitHub\")\n\ngenerate an random number with specific length\n\n**Parameters**\n\n-   `length` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** \n\nReturns **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\n### getDeepProperty\n\n[src/index.js:119-147](https://github.com/toxic-johann/toxic-utils/blob/2b6844986d149e8d81d0c29eb28c4d5a2b92e5f6/src/index.js#L119-L147 \"Source code on GitHub\")\n\nget an deep property\n\n**Parameters**\n\n-   `obj` **any** \n-   `keys` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)>)** \n-   `$2` **any**  (optional, default `{}`)\n    -   `$2.throwError`   (optional, default `false`)\n    -   `$2.backup`  \n","publish_time":1511626134093,"_cnpm_publish_time":1511626134093,"dist-tags":{"beta":"0.3.0-alpha.1","latest":"0.4.3"}}