You can see it in your terminal by using npx
:
npx bdougherty
Original by Tierney Cyren.
MIT
Convert a string to title case using the Daring Fireball rules.
License: MIT License
You can see it in your terminal by using npx
:
npx bdougherty
Original by Tierney Cyren.
MIT
It's difficult to specifically opt this module into babel in my project config. I'd appreciate it if you could publish a transpiled version to npm.
Here are a few examples with incorrect output:
REMIX INTRO (Original Mix)
TEST STRING (Original Mix) (Feat. MC FOO)
VIBES! Feat. MC FOO
FOO! Feat. MC BAR
prologue the MAX (Original Mix)
Seems like maybe something like
if (string.toUpperCase() === string) {
string = string.toLowerCase();
}
needs to be added to the capitalize() function?
Happy to make a PR, just wanted to check if someone will merge it.
Thank you for this handy package! My only suggestion is to add an associated TypeScript definition file. (I made a bare-bones one myself.) Microsoft has a tool to help with this: https://github.com/microsoft/dts-gen (Thank you!)
Would it be possible to keep spacing in the string as-is? The title-casing looks good for my needs but I need to have the resulting string be the same length as the input.
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.