ianstormtaylor / to-title-case Goto Github PK
View Code? Open in Web Editor NEWConvert a string to a title case.
Convert a string to a title case.
npm ERR! notarget No compatible version found: map@'ianstormtaylor/map#0.1.2'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["0.0.0","0.0.1","0.0.2","0.0.3"]
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! System Darwin 14.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "to-title-case"
Example:
> var toTitleCase = require('to-title-case')
undefined
> toTitleCase('hello world')
'Hello World'
> toTitleCase('hello-world')
'Hello World'
Hyphens in the input should be retained in the output.
Hey just found out that passing non latin chars make to-title-case return an empty string
require('to-title-case')("ارژنگ") // return ''
$ component install ianstormtaylor/to-title-case
install : ianstormtaylor/to-title-case@master
complete : ianstormtaylor/to-title-case
$ npm install to-title-case
npm http GET https://registry.npmjs.org/to-title-case
npm http 304 https://registry.npmjs.org/to-title-case
npm http GET https://registry.npmjs.org/escape-regexp-component/1.0.2
npm http GET https://registry.npmjs.org/map
npm http GET https://registry.npmjs.org/title-case-minors/0.0.2
npm http GET https://registry.npmjs.org/to-capital-case/0.1.1
npm http 304 https://registry.npmjs.org/map
npm http 304 https://registry.npmjs.org/to-capital-case/0.1.1
npm ERR! Error: No compatible version found: map@'ianstormtaylor/map#0.1.0'
npm ERR! Valid install targets:
npm ERR! ["0.0.0","0.0.1","0.0.2"]
npm ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:553:10)
npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:477:15
npm ERR! at saved (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:138:7)
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:222:7
npm ERR! at Object.oncomplete (fs.js:297:15)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <[email protected]>
npm ERR! System Darwin 13.0.0
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "to-title-case"
npm ERR! cwd /Volumes/DATA/Users/pjobson/brew_data/node.js/nodeShopper/bin
npm ERR! node -v v0.8.3
npm ERR! npm -v 1.1.43
npm http 304 https://registry.npmjs.org/title-case-minors/0.0.2
npm http 304 https://registry.npmjs.org/escape-regexp-component/1.0.2
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Volumes/DATA/Users/pjobson/brew_data/node.js/nodeShopper/bin/npm-debug.log
npm ERR! not ok code 0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.