Giter VIP home page Giter VIP logo

to-title-case's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

to-title-case's Issues

non latin characters

Hey just found out that passing non latin chars make to-title-case return an empty string

require('to-title-case')("ارژنگ") // return ''

Hyphens get removed from output

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.

Install Fails

$ 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

to-title-case wont install

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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.