Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Simple case detection and conversion for strings.
$ component install ianstormtaylor/to-case
$ npm install to-case
Case detection:
var Case = require('to-case');
Case('thisIsAString'); // "camel"
Case('This Is A String'); // "capital"
Case('THIS_IS_A_STRING'); // "constant"
Case('this.is.a.string'); // "dot"
Case('this is a string.'); // "lower"
Case('ThisIsAString'); // "pascal"
Case('This is a string.'); // "sentence"
Case('this-is-a-string'); // "slug"
Case('this_is_a_string'); // "snake"
Case('this is a string'); // "space"
Case('This Is a String'); // "title"
Case('THIS IS A STRING'); // "upper"
Case conversion:
var to = require('to-case');
to.camel('what_the_heck'); // "whatTheHeck"
to.capital('what the heck'); // "What The Heck"
to.constant('whatTheHeck'); // "WHAT_THE_HECK"
to.dot('whatTheHeck'); // "what.the.heck"
to.inverse('whaT tHe HeCK'); // "WHAt ThE HeCK"
to.lower('whatTheHeck'); // "what the heck"
to.pascal('what.the.heck'); // "WhatTheHeck"
to.sentence('WHAT THE HECK.'); // "What the heck."
to.slug('whatTheHeck'); // "what-the-heck"
to.snake('whatTheHeck'); // "what_the_heck"
to.space('what.the.heck'); // "what the heck"
to.title('what the heck'); // "What the Heck"
to.upper('whatTheHeck'); // "WHAT THE HECK"
Determine the case of a string
.
Convert a string
to a case
.
Add a case with the given name
and a converter
function.
MIT
FAQs
Simple case conversion and detection for strings.
The npm package to-case receives a total of 13,109 weekly downloads. As such, to-case popularity was classified as popular.
We found that to-case demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.