{"name":"toxic-utils","version":"0.4.2","description":"utils","main":"lib/index.js","module":"lib/index.mjs","jsnext:main":"lib/index.mjs","browser":"lib/index.browser.js","scripts":{"test":"jest --coverage && node env-node-check","start":"jest --coverage --watch","lint":"tslint -c ./tslint.json 'src/**/*.ts' --fix && eslint ./ --fix","precommit":"npm run lint","prepush":"npm run test","build":"npm run tsc && tsc --emitDeclarationOnly true --outDir ./lib && 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","tsc":" tsc --outDir ./ts-out","preversion":"npm test","version":"npm run build && git add -A lib","postversion":"git push && git push --tags"},"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/core":"^7.4.5","@babel/plugin-transform-runtime":"^7.4.4","@babel/preset-env":"^7.4.5","@types/lodash-es":"^4.17.3","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-jest":"^24.8.0","babel-preset-es2015-rollup":"^3.0.0","documentation":"^11.0.0","eslint":"^5.16.0","eslint-config-egg":"^7.4.1","eslint-plugin-jest":"^22.6.4","husky":"^2.3.0","jest":"^24.8.0","rollup":"^1.13.1","rollup-plugin-babel":"^4.3.2","rollup-plugin-commonjs":"^10.0.0","rollup-plugin-includepaths":"^0.2.3","rollup-plugin-node-resolve":"^5.0.1","rollup-plugin-typescript":"^1.0.1","rollup-plugin-uglify":"^6.0.2","ts-jest":"^24.0.2","tslint":"^5.17.0","typescript":"^3.5.1"},"jest":{"modulePaths":["src"],"moduleDirectories":["node_modules"],"transform":{"^.+\\.tsx?$":"ts-jest",".*":"babel-jest"},"moduleFileExtensions":["ts","tsx","js","jsx","json","node"],"transformIgnorePatterns":["/node_modules/(?!lodash-es).+\\.js$"]},"dependencies":{"lodash-es":"^4.17.11"},"gitHead":"66d38f4fbc34b7c6fd15cd4a731c2668945728df","_id":"toxic-utils@0.4.2","_nodeVersion":"12.0.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-QUc7s2hJDwJjqRsPuIEbmFKEPgZYBIk+pf9UIMs6gI20LM9fm7CficdDk68serTvBQU2O9VOCBWagIni5gggYg==","shasum":"219c1992a7f64bfeecc3c33c1365eccecde941b3","tarball":"http://registry-npm.ywwl.com/toxic-utils/download/toxic-utils-0.4.2.tgz","fileCount":20,"unpackedSize":138829,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc8zSDCRA9TVsSAnZWagAAGrMP+QBnhMWVzBBUZdzb4PXB\nDWoT6Iclz544bL2iO/05nu/ngMoKYSJ05XCJKz1+MXGyBTIPlIEA5ld/FI6U\n0U57lA54u8h9qiMELDd64+dXst8P6QkEphl0G4xoDZRAoA/oC8mIJVDofu8F\ns+AHdb/wc/yO8eUQmm4Hhr7qps6yhyNsy6PusOY6Qev3l4XWEEC81G4AxmM5\niWuGGB77W4F4EXoy+aiGn32tvjtMrVgYTt7mJ+zUVmL0sLRGcKykCXwc7omN\nZEEvvIN8sS92QECif8IKYyroAju+2N611Ts1GD+ZrPgBwRoOkPw0NTIpq/6h\ncsoXhJwnvxsU0SlEtJvR3gI4OJ+J3RJccvlvMN6aQRwxXED70SGFBRwElf0j\n8iNctGkQIfvmAAZ0frvrXNtpK27Vc/Wi+3DV0uZ0Zw4atYY1/bli9OfH0jPS\neH8BudwCXe3ZfaznEygmHBbArIwZKMvk0gZoyVPzaWGEXZ21+eVnXb5IPqCi\nh1FPrf+F5iCuSABJjx+pudWuBwCCmR1g8/S3IvFSmTqDWWbXmb3rcut9LMAq\nptqYZ8RggjOJ6SWFIl9mZSyAXBCqEeIYbhtrYdbVEHVsrfQ3NpM15MXv4x4n\ne9YlnnDnAvR80EA9wwUnySjRhJz8VhFmv1QVcfhAh9jgU4o35mqIEKiGnxFC\nmNyL\r\n=+Yqd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEMCJnWEh6A86jkzcKWIfrbLVJbF7CjHdTlZilZGH3skAiEApwVpiK5q+FoNSjrJ0CUslOPQpp9HFCdUpLS2mzb0lxM="}],"size":28771,"noattachment":false,"key":"/toxic-utils/-/toxic-utils-0.4.2.tgz"},"maintainers":[{"name":"toxicjohann","email":"353904974@qq.com"}],"_npmUser":{"name":"toxicjohann","email":"353904974@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/toxic-utils_0.4.2_1559442562913_0.9608027046297649"},"_hasShrinkwrap":false,"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":1559442563061,"_cnpm_publish_time":1559442563061,"dist-tags":{"beta":"0.3.0-alpha.1","latest":"0.4.3"}}