GitXplorerGitXplorer
j

string-humanize

public
7 stars
4 forks
0 issues

Commits

List of commits on branch master.
Unverified
29a73daef3aa20088f0fca64100c26b7b3997d39

Updates for IE, testling, and changes test harness.

jjxson committed 10 years ago
Unverified
f684f5aee12c4286f41e9b492e49ed45e0380015

1.0.0

jjxson committed 11 years ago
Unverified
e5a36567615b9c0c12ffc61dc827435af1de90f7

0.1.1

jjxson committed 11 years ago
Unverified
ccaeef69cb37c1a9cda8441e466236f7c4e6dd7e

Fixes typo in the readme

jjxson committed 11 years ago
Unverified
523bf4dec084d68d89102363798cf87e63e151d6

Updates testing browsers

jjxson committed 11 years ago
Unverified
de1aff5e2769466ce5c4806a7506d96de71ca962

0.1.0

jjxson committed 11 years ago

README

The README file for this repository.

string-humanize Build Status

Transforms the input into a human friendly form (just the .humanize() function from string.js).

NPM

browser support

I noticed that there was a TODO in string.js to break things up into smaller modules so I thought I would help out.

Installation

npm install string-humanize

humanize(string)

Transforms the input into a human friendly form

var humanize = require('string-humanize')

humanize('super_snake_case')      // Super snake case
humanize('capitalizedCamelCase')  // Capitalized camel case
humanize('hyphen-case')           // 'Hyphen case'
humanize('no-extensions-here.md') // 'No extensions here'
humanize('lower cased phrase')    // 'Lower cased phrase'
humanize('  so many  spaces  ')   // 'So many spaces'
humanize(123)                     // '123'
humanize('')                      // ''
humanize(null)                    // ''
humanize(undefined)               // ''

Contributing

Fork and send a PR if you see fit, make sure to report any issues.

LICENSE (MIT)

Copyright (c) Jason Campbell ("Author")

Permission 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:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE 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.