{"_id":"titlecase","_rev":"84055","name":"titlecase","description":"Intelligently converting strings to title case (an enhanced fork of David Gouch's library)","dist-tags":{"latest":"1.1.3"},"maintainers":[{"name":"rvagg","email":""}],"time":{"modified":"2021-06-03T10:26:44.000Z","created":"2014-04-12T06:09:48.339Z","1.1.3":"2019-03-13T07:17:28.622Z","1.1.2":"2016-02-22T19:46:00.698Z","1.1.1":"2016-02-21T11:50:20.088Z","1.0.2":"2014-04-12T06:19:07.929Z","1.0.1":"2014-04-12T06:17:40.112Z","1.0.0":"2014-04-12T06:09:48.339Z"},"users":{"rahulraghavankklm":true,"ash":true,"cyandev":true,"ryanfitzer":true,"danielbayley":true},"author":{"name":"Rod Vagg","email":"rod@vagg.org"},"repository":{"type":"git","url":"git://github.com/rvagg/titlecase.git"},"versions":{"1.1.3":{"name":"titlecase","version":"1.1.3","description":"Intelligently converting strings to title case (an enhanced fork of David Gouch's library)","main":"to-title-case.js","repository":{"type":"git","url":"git://github.com/rvagg/titlecase.git"},"keywords":["title-case","title","case","gouch","to-title-case"],"author":{"name":"Rod Vagg","email":"rod@vagg.org"},"license":"MIT","bin":{"to-title-case":"./bin.js"},"gitHead":"602706669f4270b0ee47ee346e4316c188033f56","bugs":{"url":"https://github.com/rvagg/titlecase/issues"},"homepage":"https://github.com/rvagg/titlecase#readme","_id":"titlecase@1.1.3","_nodeVersion":"11.10.1","_npmVersion":"6.7.0","dist":{"shasum":"fc6d65ff582b0602410768ef1a09b70506313dc3","size":4884,"noattachment":false,"key":"/titlecase/-/titlecase-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/titlecase/download/titlecase-1.1.3.tgz"},"maintainers":[{"name":"rvagg","email":""}],"_npmUser":{"name":"rvagg","email":"r@va.gg"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/titlecase_1.1.3_1552461448512_0.18744207998190276"},"_hasShrinkwrap":false,"publish_time":1552461448622,"_cnpm_publish_time":1552461448622},"1.1.2":{"name":"titlecase","version":"1.1.2","description":"Intelligently converting strings to title case (an enhanced fork of David Gouch's library)","main":"to-title-case.js","repository":{"type":"git","url":"git://github.com/rvagg/titlecase.git"},"keywords":["title-case","title","case","gouch","to-title-case"],"author":{"name":"Rod Vagg","email":"rod@vagg.org"},"license":"MIT","bin":{"to-title-case":"./bin.js"},"gitHead":"5ac42662f485eddc2ec3cc1589101a1cb46571e7","bugs":{"url":"https://github.com/rvagg/titlecase/issues"},"homepage":"https://github.com/rvagg/titlecase#readme","_id":"titlecase@1.1.2","scripts":{},"_shasum":"78113d1108086b8326331a3247dea8f5a49ea853","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.0","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":""}],"dist":{"shasum":"78113d1108086b8326331a3247dea8f5a49ea853","size":4937,"noattachment":false,"key":"/titlecase/-/titlecase-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/titlecase/download/titlecase-1.1.2.tgz"},"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/titlecase-1.1.2.tgz_1456170356949_0.8823311226442456"},"directories":{},"publish_time":1456170360698,"_cnpm_publish_time":1456170360698,"_hasShrinkwrap":false,"deprecated":"no longer maintained"},"1.1.1":{"name":"titlecase","version":"1.1.1","description":"Intelligently converting strings to title case (an enhanced fork of David Gouch's library)","main":"to-title-case.js","repository":{"type":"git","url":"git://github.com/rvagg/titlecase.git"},"keywords":["title-case","title","case","gouch","to-title-case"],"author":{"name":"Rod Vagg","email":"rod@vagg.org"},"license":"MIT","bin":{"to-title-case":"./to-title-case.js"},"gitHead":"f93ac85e35c398c715a83e7ff02b3937f649a493","bugs":{"url":"https://github.com/rvagg/titlecase/issues"},"homepage":"https://github.com/rvagg/titlecase#readme","_id":"titlecase@1.1.1","scripts":{},"_shasum":"9dc5559ff4cbd695df3802528f90e39d8f737ca9","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.6.0","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":""}],"dist":{"shasum":"9dc5559ff4cbd695df3802528f90e39d8f737ca9","size":4899,"noattachment":false,"key":"/titlecase/-/titlecase-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/titlecase/download/titlecase-1.1.1.tgz"},"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/titlecase-1.1.1.tgz_1456055415900_0.6597193174529821"},"directories":{},"publish_time":1456055420088,"_cnpm_publish_time":1456055420088,"_hasShrinkwrap":false,"deprecated":"no longer maintained"},"1.0.2":{"name":"titlecase","version":"1.0.2","description":"Intelligently converting strings to title case (an enhanced fork of David Gouch's library)","main":"to-title-case.js","repository":{"type":"git","url":"git://github.com/rvagg/titlecase.git"},"keywords":["title-case","title","case","gouch","to-title-case"],"author":{"name":"Rod Vagg","email":"rod@vagg.org"},"license":"MIT","bugs":{"url":"https://github.com/rvagg/titlecase/issues"},"homepage":"https://github.com/rvagg/titlecase","_id":"titlecase@1.0.2","dist":{"shasum":"e8c9b36131125ea749dba4ce5451d8530c175e1f","size":4719,"noattachment":false,"key":"/titlecase/-/titlecase-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/titlecase/download/titlecase-1.0.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":""}],"directories":{},"publish_time":1397283547929,"_cnpm_publish_time":1397283547929,"_hasShrinkwrap":false,"deprecated":"no longer maintained"},"1.0.1":{"name":"titlecase","version":"1.0.1","description":"Intelligently converting strings to title case (an enhanced fork of David Gouch's library)","main":"to-title-case.js","repository":{"type":"git","url":"git://github.com/rvagg/titlecase.git"},"keywords":["title-case","title","case","gouch","to-title-case"],"author":{"name":"Rod Vagg","email":"rod@vagg.org"},"license":"MIT","bugs":{"url":"https://github.com/rvagg/titlecase/issues"},"homepage":"https://github.com/rvagg/titlecase","_id":"titlecase@1.0.1","dist":{"shasum":"a9b51b524801784fc59545872b57f8d9a144a638","size":4702,"noattachment":false,"key":"/titlecase/-/titlecase-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/titlecase/download/titlecase-1.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":""}],"directories":{},"publish_time":1397283460112,"_cnpm_publish_time":1397283460112,"_hasShrinkwrap":false,"deprecated":"no longer maintained"},"1.0.0":{"name":"titlecase","version":"1.0.0","description":"Intelligently converting strings to title case (an enhanced fork of David Gouch's library)","main":"to-title-case.js","repository":{"type":"git","url":"git://github.com/rvagg/titlecase.git"},"keywords":["title-case","title","case","gouch","to-title-case"],"author":{"name":"Rod Vagg","email":"rod@vagg.org"},"license":"MIT","bugs":{"url":"https://github.com/rvagg/titlecase/issues"},"homepage":"https://github.com/rvagg/titlecase","_id":"titlecase@1.0.0","dist":{"shasum":"40e065f68e2d5668fd0ecb3f2e84907e0a618359","size":4655,"noattachment":false,"key":"/titlecase/-/titlecase-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/titlecase/download/titlecase-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":""}],"directories":{},"publish_time":1397282988339,"_cnpm_publish_time":1397282988339,"_hasShrinkwrap":false,"deprecated":"no longer maintained"}},"readme":"# David Gouch's String#toTitleCase() for Node.js\n\nThis is a fork of David Gouch's excellent [`String#toTitleCase()`](https://github.com/gouch/to-title-case) method inspired by John Gruber's [post on the topic](http://daringfireball.net/2008/08/title_case_update)\n\nI've simply taken it off the `String` prototype and exported it from a simple module.\n\n```js\nvar toTitleCase = require('titlecase')\n\nconsole.log(toTitleCase('foo bar baz'))\n```\n\nSee [Gouch's page](http://individed.com/code/to-title-case/) with inline converter. Also see this excellent **[table of test case results](http://individed.com/code/to-title-case/tests.html)** for different converters.\n\nIn addition, I've added a more comprehensive list of words to not capitalise that includes articles, prepositions and conjunctions (see source files for lists), I'm calling this \"lax title case\", use it like so:\n\n\n```js\nvar toLaxTitleCase = require('titlecase').toLaxTitleCase\n\nconsole.log(toLaxTitleCase('foo bar baz'))\n```\n\n**Using as an executable**\n\nInstall with `npm install titlecase -g` and you'll get a `to-title-case` executable that you can run to titlecase strings:\n\n```\n$ to-title-case \"what is this thing?\"\nWhat Is This Thing?\n```\n\n*Original README:*\n\n# To Title Case for JavaScript\n\nInstructions: Include the to-title-case.js script and use the new .toTitleCase() method on the string you want converted.\n\n## History\n### 2.1 / 2013-11-03\n- Acknowledge characters outside of US-ASCII\n- Fix bug related to hyphenated small words\n- Replace baby's first testing script with the QUnit framework\n\n### 2.0.1 / 2012-01-06\n\n- Fixed IE 7 breakage introduced in 2.0. Don't treat strings like character arrays.\n\n### 2.0 / 2012-01-06\n\n- 15% less code and 35% easier to understand.\n- Small words list moved to variable for easy modification.\n- Test titles rewritten to focus on a single issue per title.\n- More braces to make style guides and JSLint happier.\n\n## License\n\nCopyright © 2008–2013 David Gouch. Licensed under the MIT License.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n","_attachments":{},"homepage":"https://github.com/rvagg/titlecase#readme","bugs":{"url":"https://github.com/rvagg/titlecase/issues"},"license":"MIT"}