{"_id":"@badass-team-code/formatted-cases-words","_rev":"5-6f0d880d212c949ffe1302f98ebedc20","name":"@badass-team-code/formatted-cases-words","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.1":{"name":"@badass-team-code/formatted-cases-words","version":"0.0.1","description":"Snake and camel case formatter","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/badassteamcode/formatted-cases-words.git"},"author":{"name":"Lucas Santos, Jean Cigoli e Davi Soares"},"license":"MIT","keywords":["snake","camel","snakecase","camelcase","camel-case","snake-case","convert","text","string","underscore","separator"],"homepage":"https://github.com/badassteamcode/formatted-cases-words#readme","bugs":{"url":"https://github.com/badassteamcode/formatted-cases-words/issues"},"scripts":{"prebuild":"rimraf dist","build":"tsc --declaration","prepublish":"yarn build","server:dev":"tsnd --transpile-only --ignore-watch node_modules src/main/server.ts"},"devDependencies":{"ts-node-dev":"^1.1.8","typescript":"^4.4.3"},"gitHead":"a46032b5919dead656a274d474995fc155901a41","_id":"@badass-team-code/formatted-cases-words@0.0.1","_nodeVersion":"14.15.5","_npmVersion":"6.14.11","dist":{"integrity":"sha512-pmptqBLTJ+0ZtG8dyJTmC4lHi7/KmtQermpQrVqShpUwhDqBEdu+Bhs5eUjeaclkX8Sfr+JtIs20pAv+47825Q==","shasum":"7460fa5f15b326d4a63a4aac0121a5ba9e2063be","tarball":"https://registry.npmjs.org/@badass-team-code/formatted-cases-words/-/formatted-cases-words-0.0.1.tgz","fileCount":23,"unpackedSize":16382,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICJI/2PSMhb0GZqJYQoGOLXnVsSeLjzfJVgaESeUW++TAiEA/NQj8uuUECCT/AdZjmjMbSDq3WO8j0/xEbER2UcA18U="}]},"_npmUser":{"name":"jeancigoli","email":"jeancigoli30@gmail.com"},"directories":{},"maintainers":[{"name":"jeancigoli","email":"jeancigoli30@gmail.com"},{"name":"badass-team","email":"badassteamcode@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/formatted-cases-words_0.0.1_1632227052224_0.6912718487681027"},"_hasShrinkwrap":false},"0.0.2":{"name":"@badass-team-code/formatted-cases-words","version":"0.0.2","description":"Snake and camel case formatter","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/badassteamcode/formatted-cases-words.git"},"author":{"name":"Lucas Santos, Jean Cigoli e Davi Soares"},"license":"MIT","keywords":["snake","camel","snakecase","camelcase","camel-case","snake-case","convert","text","string","underscore","separator"],"homepage":"https://github.com/badassteamcode/formatted-cases-words#readme","bugs":{"url":"https://github.com/badassteamcode/formatted-cases-words/issues"},"scripts":{"prebuild":"rimraf dist","build":"tsc --declaration","prepublish":"yarn build","server:dev":"tsnd --transpile-only --ignore-watch node_modules src/main/server.ts"},"devDependencies":{"ts-node-dev":"^1.1.8","typescript":"^4.4.3"},"gitHead":"483ec7bdc3460f2ce3ba0f6b51f8cbfb72167660","_id":"@badass-team-code/formatted-cases-words@0.0.2","_nodeVersion":"14.15.5","_npmVersion":"6.14.11","dist":{"integrity":"sha512-u93QKIlvxPAxoXIpbujhgRtnl2J5Dv0F5SlBGGnPAOB41vF20hcs4rAxEvs8vZocEPPBzpYkguHFMygfgLSQsw==","shasum":"8a81b40d647258ba4b387eaad3ecd6cb84b50fc2","tarball":"https://registry.npmjs.org/@badass-team-code/formatted-cases-words/-/formatted-cases-words-0.0.2.tgz","fileCount":23,"unpackedSize":16392,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIALHSMzJ/MFtaE1zMHYdrdcyKg3xUhTaxFz304vqed/gAiA2HCb7pSWQk7dhGugO6J/3nw41BDV3F4iLMBz8WrMIQg=="}]},"_npmUser":{"name":"jeancigoli","email":"jeancigoli30@gmail.com"},"directories":{},"maintainers":[{"name":"jeancigoli","email":"jeancigoli30@gmail.com"},{"name":"badass-team","email":"badassteamcode@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/formatted-cases-words_0.0.2_1632229474158_0.6072955571165257"},"_hasShrinkwrap":false},"1.0.0":{"name":"@badass-team-code/formatted-cases-words","version":"1.0.0","description":"Snake and camel case formatter","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/badassteamcode/formatted-cases-words.git"},"author":{"name":"Lucas Santos, Jean Cigoli e Davi Soares"},"license":"MIT","keywords":["snake","camel","snakecase","camelcase","camel-case","snake-case","convert","text","string","underscore","separator"],"homepage":"https://github.com/badassteamcode/formatted-cases-words#readme","bugs":{"url":"https://github.com/badassteamcode/formatted-cases-words/issues"},"scripts":{"prebuild":"rimraf dist","build":"tsc --declaration","prepublish":"yarn build","server:dev":"tsnd --transpile-only --ignore-watch node_modules src/main/server.ts"},"devDependencies":{"ts-node-dev":"^1.1.8","typescript":"^4.4.3"},"gitHead":"1668ff4031bf677327edbc3ba37c2b90b490c564","_id":"@badass-team-code/formatted-cases-words@1.0.0","_nodeVersion":"14.15.5","_npmVersion":"6.14.11","dist":{"integrity":"sha512-Sd1Kb1ZOcRSTaVTbnfeFveOtkrj5MHNzcjLI5nFJOXsZcyIS+thldcloz0F/Ra2EtFCJ2xzworDZuWG8OcqpFA==","shasum":"c9439e2a0fb51f1bb12839c70bdc4b245da8bc1e","tarball":"https://registry.npmjs.org/@badass-team-code/formatted-cases-words/-/formatted-cases-words-1.0.0.tgz","fileCount":23,"unpackedSize":16392,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzHF5CRA9TVsSAnZWagAAra4P/jx4LiSoONjomA+vJtV8\ntMZtpxkPuRAusu+lVRaWapAuXAYs/ujd0TWQfShJGPEkAXokEvspsgSBSwKs\nJke6xovpw2Ta7OCcZPoiIA1Oz63hzOXWIuMRcrUBEBjm6jl5f6+DuDLV8PqI\nKNzV9Y9PO2gJmhuYIX+m/7ZUUFH1jTjy01ysw5H3TfqBMTkaJSJVO4xTm0TU\nJMtqKpR05H33g0BBRPEqSHFj6m8TVV/rn3rB0Vf7fgOQ25hAEVtsWd1iG0OZ\nk8kJa2/lt/7CjzfpY7eadA47+bAxrWu5uhNJK10gyQmR1UOsnwZuAlK2zOzZ\nYhL68Iefdc962wczb4aEpQeYxVthis7lLz84RZjujHbJo21hBkAC6XYp2YnS\nk3vnwrmI9IAo/OSXnD6t5g4MAoDcOZqaeGlXvIa58aKG9fhNOWNJbjkg9ebj\nvGkw2oQMnBEPyaYIHwVC8g+B7J2Gnd6AQ7t2nBiy2dacMqQGq+tmDlh9kMwJ\n1PPDac/JOzF6VSISFD42sitQXBcvaB7cysDRVnXi2iaHk6ajjXrReaoALhey\ncjvcjerQeBMVqjW5YkUhXTvhX/fTkIKOCE3aJT8wuhWqQUjXaV/4uqzoee5G\nShqvxevkgEIml9G550DyGPKnxzAQTcqdUKwqKAmhh+ygd7WLc3APZV2B1Irm\nyE1S\r\n=9mhC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0wYG0ooJ2lu7wDfF5VGSn2Pwt6qkD/hVx2k35HhwByQIgPPGpWEZpAD6/gUcLnvYX6vfRA1iISy3r/89YFSh1A+0="}]},"_npmUser":{"name":"jeancigoli","email":"jeancigoli30@gmail.com"},"directories":{},"maintainers":[{"name":"badass-team","email":"badassteamcode@gmail.com"},{"name":"jeancigoli","email":"jeancigoli30@gmail.com"},{"name":"lucassm02","email":"lucassm02@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/formatted-cases-words_1.0.0_1633608111193_0.5501604495412755"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-21T12:24:12.179Z","0.0.1":"2021-09-21T12:24:12.370Z","modified":"2022-04-04T17:29:47.316Z","0.0.2":"2021-09-21T13:04:34.299Z","1.0.0":"2021-10-07T12:01:51.418Z"},"maintainers":[{"name":"badass-team","email":"badassteamcode@gmail.com"},{"name":"jeancigoli","email":"jeancigoli30@gmail.com"},{"name":"lucassm02","email":"lucassm02@gmail.com"}],"description":"Snake and camel case formatter","homepage":"https://github.com/badassteamcode/formatted-cases-words#readme","keywords":["snake","camel","snakecase","camelcase","camel-case","snake-case","convert","text","string","underscore","separator"],"repository":{"type":"git","url":"git+https://github.com/badassteamcode/formatted-cases-words.git"},"author":{"name":"Lucas Santos, Jean Cigoli e Davi Soares"},"bugs":{"url":"https://github.com/badassteamcode/formatted-cases-words/issues"},"license":"MIT","readme":"# Snake and camel case formatter\n\n## Installation\n\nThis is a **Node.js** module available through the [npm registry](https://www.npmjs.com/).\n\nBefore installing, [download and install Node.js](https://nodejs.org/en/download/).\n\nInstallation is done using the **npm install command**:\n\n```prompt\nnpm install @badass-team-code/formatted-cases-words\n```\n\nOr using the yarn:\n\n```prompt\nyarn add @badass-team-code/formatted-cases-words\n```\n\n## Quick Start\n\nAfter installation, import the functions for formats which currently are: **formateCamelCaseKeysForSnakeCase** and **formateSnakeCaseKeysForCamelCase**\n\n```js\nimport {\n  formateCamelCaseKeysForSnakeCase,\n  formateSnakeCaseKeysForCamelCase,\n} from \"@baddas-team/formatted-cases-words\";\n```\n\n## Examples\n\nBy passing the following json to the formatting function:\n\n```js\nconst json = formateCamelCaseKeysForSnakeCase({\n  messageText: \"Example\",\n  dateText: new Date(),\n  array: [\n    {\n      arrayText: \"\",\n    },\n  ],\n});\n```\n\nThe result is:\n\n```json\n{\n  \"message_text\": \"Example\",\n  \"date_text\": \"2021-09-20T23:40:43.381Z\",\n  \"array\": [{ \"array_text\": \"\" }]\n}\n```\n\nNow when using the reverse:\n\n```js\nconst json = formateSnakeCaseKeysForCamelCase({\n  message_text: \"Example\",\n  date_text: new Date(),\n  array: [{ array_text: \"\" }],\n});\n```\n\nThe result is:\n\n```json\n{\n  \"messageText\": \"Example\",\n  \"dateText\": \"2021-09-20T23:41:58.766Z\",\n  \"array\": [{ \"arrayText\": \"\" }]\n}\n```\n","readmeFilename":"readme.md"}