{"_id":"to-case","_rev":"371008","name":"to-case","description":"Simple case conversion and detection for strings.","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"ianstormtaylor","email":""}],"time":{"modified":"2021-07-27T02:36:17.000Z","created":"2015-03-31T23:57:30.020Z","2.0.0":"2016-01-21T20:07:44.023Z","1.0.2":"2016-01-06T00:03:12.009Z","1.0.1":"2015-05-27T19:19:38.509Z","1.0.0":"2015-03-31T23:57:30.020Z"},"users":{"ahmedghoneim92":true,"danielbayley":true,"sigkill(9)":true,"black-black-cat":true},"repository":{"type":"git","url":"git://github.com/ianstormtaylor/to-case.git"},"versions":{"2.0.0":{"name":"to-case","version":"2.0.0","description":"Simple case conversion and detection for strings.","repository":{"type":"git","url":"git://github.com/ianstormtaylor/to-case.git"},"license":"MIT","main":"lib/index.js","dependencies":{"to-camel-case":"^1.0.0","to-capital-case":"^1.0.0","to-constant-case":"^1.0.0","to-dot-case":"^1.0.0","to-no-case":"^1.0.0","to-pascal-case":"^1.0.0","to-sentence-case":"^1.0.0","to-slug-case":"^1.0.0","to-snake-case":"^1.0.0","to-space-case":"^1.0.0","to-title-case":"^1.0.0"},"devDependencies":{"mocha":"^2.3.4"},"keywords":["camel","camelcase","case","casing","lower","lowercase","pascal","pascalcase","sentence","sentencecase","slug","slugcase","snake","snakecase","string","title","titlecase","upper","uppercase"],"gitHead":"f10ee662a29c8da748234b616b34951a51fd8906","bugs":{"url":"https://github.com/ianstormtaylor/to-case/issues"},"homepage":"https://github.com/ianstormtaylor/to-case","_id":"to-case@2.0.0","scripts":{},"_shasum":"6901ed90cdbfadbf7a16d06897bfb412fa3c0f0a","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},"maintainers":[{"name":"ianstormtaylor","email":""}],"dist":{"shasum":"6901ed90cdbfadbf7a16d06897bfb412fa3c0f0a","size":3559,"noattachment":false,"key":"/to-case/-/to-case-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-case/download/to-case-2.0.0.tgz"},"directories":{},"publish_time":1453406864023,"_cnpm_publish_time":1453406864023,"_hasShrinkwrap":false},"1.0.2":{"name":"to-case","repository":{"type":"git","url":"git://github.com/ianstormtaylor/to-case.git"},"license":"MIT","version":"1.0.2","description":"Simple case conversion and detection for strings.","keywords":["case","upper","uppercase","lower","lowercase","title","titlecase","camel","camelcase","snake","snakecase"],"main":"lib/index.js","dependencies":{"to-camel-case":"git+http://github.com/ianstormtaylor/to-camel-case#0.2.1","to-capital-case":"~0.1.1","to-sentence-case":"~0.1.1","to-pascal-case":"0.0.2","to-constant-case":"~0.1.2","to-snake-case":"~0.1.2","to-dot-case":"~0.1.2","to-slug-case":"~0.1.2","to-space-case":"~0.1.2","to-no-case":"~0.1.2","to-title-case":"~0.1.2"},"devDependencies":{"mocha":"~1.15.1"},"gitHead":"4d526f9cd706a89e0b2109b720d036758c69b6d7","bugs":{"url":"https://github.com/ianstormtaylor/to-case/issues"},"homepage":"https://github.com/ianstormtaylor/to-case","_id":"to-case@1.0.2","scripts":{},"_shasum":"8f9394168db0bd9dfd67e8df5d048c807ae658cf","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},"maintainers":[{"name":"ianstormtaylor","email":""}],"dist":{"shasum":"8f9394168db0bd9dfd67e8df5d048c807ae658cf","size":29133,"noattachment":false,"key":"/to-case/-/to-case-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-case/download/to-case-1.0.2.tgz"},"directories":{},"publish_time":1452038592009,"_cnpm_publish_time":1452038592009,"_hasShrinkwrap":false},"1.0.1":{"name":"to-case","repoistory":"git://github.com/ianstormtaylor/to-case.git","license":"MIT","version":"1.0.1","description":"Simple case conversion and detection for strings.","keywords":["case","upper","uppercase","lower","lowercase","title","titlecase","camel","camelcase","snake","snakecase"],"main":"lib/index.js","dependencies":{"to-camel-case":"git+http://github.com/ianstormtaylor/to-camel-case#0.2.1","to-capital-case":"~0.1.1","to-sentence-case":"~0.1.1","to-pascal-case":"0.0.2","to-constant-case":"~0.1.2","to-snake-case":"~0.1.2","to-dot-case":"~0.1.2","to-slug-case":"~0.1.2","to-space-case":"~0.1.2","to-no-case":"~0.1.2","to-title-case":"~0.1.2"},"devDependencies":{"mocha":"~1.15.1"},"gitHead":"ea58d534f794a800ea486d4e4a5a9fbc6cb4c7b1","_id":"to-case@1.0.1","scripts":{},"_shasum":"2f52d2aa3ff8e708f298c0752ac8bae3973df9d0","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},"maintainers":[{"name":"ianstormtaylor","email":""}],"dist":{"shasum":"2f52d2aa3ff8e708f298c0752ac8bae3973df9d0","size":29077,"noattachment":false,"key":"/to-case/-/to-case-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-case/download/to-case-1.0.1.tgz"},"directories":{},"publish_time":1432754378509,"_cnpm_publish_time":1432754378509,"_hasShrinkwrap":false},"1.0.0":{"name":"to-case","repoistory":"git://github.com/ianstormtaylor/to-case.git","license":"MIT","version":"1.0.0","description":"Simple case conversion and detection for strings.","keywords":["case","upper","uppercase","lower","lowercase","title","titlecase","camel","camelcase","snake","snakecase"],"main":"lib/index.js","dependencies":{"to-camel-case":"git+http://github.com/ianstormtaylor/to-camel-case#0.2.1","to-capital-case":"~0.1.1","to-sentence-case":"~0.1.1","to-pascal-case":"0.0.2","to-constant-case":"~0.1.2","to-snake-case":"~0.1.2","to-dot-case":"~0.1.2","to-slug-case":"~0.1.2","to-space-case":"~0.1.2","to-no-case":"~0.1.2","to-title-case":"~0.1.2"},"devDependencies":{"mocha":"~1.15.1"},"gitHead":"0c5b17c674b2ed8d8338e5136f57fc58c169dcd1","_id":"to-case@1.0.0","scripts":{},"_shasum":"d471293a157d1642d0c92635b1652e7a5d44907a","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.11.16","_npmUser":{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},"maintainers":[{"name":"ianstormtaylor","email":""}],"dist":{"shasum":"d471293a157d1642d0c92635b1652e7a5d44907a","size":28981,"noattachment":false,"key":"/to-case/-/to-case-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-case/download/to-case-1.0.0.tgz"},"directories":{},"publish_time":1427846250020,"_cnpm_publish_time":1427846250020,"_hasShrinkwrap":false}},"readme":"\n# to-case [![Build Status](https://travis-ci.org/ianstormtaylor/to-case.svg?branch=master)](https://travis-ci.org/ianstormtaylor/to-case)\n\nSimple case conversion and detection for strings. Part of the series of case helpers. For the individual libraries see:\n\n- [`to-camel-case`](https://github.com/ianstormtaylor/to-camel-case)\n- [`to-constant-case`](https://github.com/ianstormtaylor/to-constant-case)\n- [`to-capital-case`](https://github.com/ianstormtaylor/to-capital-case)\n- [`to-dot-case`](https://github.com/ianstormtaylor/to-dot-case)\n- [`to-no-case`](https://github.com/ianstormtaylor/to-no-case)\n- [`to-pascal-case`](https://github.com/ianstormtaylor/to-pascal-case)\n- [`to-sentence-case`](https://github.com/ianstormtaylor/to-sentence-case)\n- [`to-slug-case`](https://github.com/ianstormtaylor/to-slug-case)\n- [`to-snake-case`](https://github.com/ianstormtaylor/to-snake-case)\n- [`to-space-case`](https://github.com/ianstormtaylor/to-space-case)\n- [`to-title-case`](https://github.com/ianstormtaylor/to-title-case)\n\n\n## Installation\n\n```\n$ npm install to-case\n```\n\n\n## Example\n\nCase conversion:\n```js\nvar to = require('to-case')\n\nto.camel('what_the_heck')      // \"whatTheHeck\"\nto.capital('what the heck')    // \"What The Heck\"\nto.constant('whatTheHeck')     // \"WHAT_THE_HECK\"\nto.dot('whatTheHeck')          // \"what.the.heck\"\nto.inverse('whaT tHe HeCK')    // \"WHAt ThE HeCK\"\nto.lower('whatTheHeck')        // \"what the heck\"\nto.pascal('what.the.heck')     // \"WhatTheHeck\"\nto.sentence('WHAT THE HECK.')  // \"What the heck.\"\nto.slug('whatTheHeck')         // \"what-the-heck\"\nto.snake('whatTheHeck')        // \"what_the_heck\"\nto.space('what.the.heck')      // \"what the heck\"\nto.title('what the heck')      // \"What the Heck\"\nto.upper('whatTheHeck')        // \"WHAT THE HECK\"\n```\n\nCase detection:\n```js\nvar to = require('to-case')\n\nto('thisIsAString')      // \"camel\"\nto('This Is A String')   // \"capital\"\nto('THIS_IS_A_STRING')   // \"constant\"\nto('this.is.a.string')   // \"dot\"\nto('this is a string.')  // \"lower\"\nto('ThisIsAString')      // \"pascal\"\nto('This is a string.')  // \"sentence\"\nto('this-is-a-string')   // \"slug\"\nto('this_is_a_string')   // \"snake\"\nto('this is a string')   // \"space\"\nto('This Is a String')   // \"title\"\nto('THIS IS A STRING')   // \"upper\"\n```\n\n\n## API\n\n### to(string)\n\nDetermine the case of a `string`.\n  \n### to[case]\\(string\\)\n\nConvert a `string` to a `case`.\n\n### to.add(name, converter)\n\nAdd a case with the given `name` and a `converter` function.\n\n\n## License\n\nThe MIT License (MIT)\n\nCopyright &copy; 2016, Ian Storm Taylor\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_attachments":{},"homepage":"https://github.com/ianstormtaylor/to-case","bugs":{"url":"https://github.com/ianstormtaylor/to-case/issues"},"license":"MIT"}