{"name":"toxic-utils","version":"0.4.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","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":"8453b66b9224c4474f758af4066b5b4bdc13e540","_id":"toxic-utils@0.4.0","_nodeVersion":"12.0.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-I9dYpT+iv+F6LaXPF+KgD7s4NZkBk4aQhMgZ2/q0LPHY1FJizWROQD1fRDyOJDNi32Hf47dIc0A7Ub8t6bQ7WQ==","shasum":"33a4be7530f844527c15a5f7856f3c5076c2fc31","tarball":"http://registry-npm.ywwl.com/toxic-utils/download/toxic-utils-0.4.0.tgz","fileCount":19,"unpackedSize":75479,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc8qBvCRA9TVsSAnZWagAARhgP/RAMBCiIR6IIpHE0MpCV\nrgUWQmoh8IkQXCeEDutQ1dDMZ0vArruYyHAhA/XtdRMEUyqbHhaSipUz0fkC\nAjWrL+kWFDNOc68RZH6W2iRNZYSlOYanfCZ6L4RvsXudBUh0giGqYwd9mI2R\nta0X6o4Zx7kblVT0KX2Pec0+fm3s0bwMgoaM3vCDXMVVMiSnDrcS3wByOR2P\nvDeD5Xk2iDKfcm3CSN8hte9+zTBi8ExoOFkqMlA94dJo2IPTJ7sY6+OpRzMA\n1XhWhLZdnEs9NPdQBjv6tYbvEbxJrw92xzQgEaeSPWK1wRjFGvQGO2LSRPSs\nt6PBzLpiyM6QRlPeaV7G2wM4SDNwhFGAYNMbP8kON10ldQHIdhxOOgR5dkGV\nHM4fqg0v1UEs1gOgR4myO2SQeAxYUonFBiI/ib1px6/CSPZwB8kLPxjUNKrZ\nJ7jGEETLG/4bw80wlLIyzKpBHeWMO7RgE6Tva+A4T2FfaT7b8q7qasWhsKYr\nZNiRSN+amsdTXEeX6Mrk+D0BdbWFr8JqPAsS7EOVthNaKKkcIGzNvdRdREEV\nO4E7c/OTRsHPcebss2wu9ZQlk/xoyk6xiegjgAY3xyJUOR2KUaStMgy6r/oR\nUosNJLnlu8EnOj/SRMhQ7wMXGfwfZxcfCCXdNDr1ql3oE+7u5GW5yyf6Waf6\n2yQu\r\n=+x1W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFBWof4ZsVsEIluUDIvmG6LIMQ6J3beaP8B+S1Ar+Gf8AiA1fZy6L51G3LHp+kcLCh9n7/IYEkZ3q1Unt0hobZsX+g=="}],"size":16310,"noattachment":false,"key":"/toxic-utils/-/toxic-utils-0.4.0.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.0_1559404654640_0.9039744023593135"},"_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":1559404654796,"_cnpm_publish_time":1559404654796,"dist-tags":{"beta":"0.3.0-alpha.1","latest":"0.4.3"}}