
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
npm install @sil/case
import { kebabCase } from "@sil/case";
const myString = "This Is My STRING";
const myStringKebabCase = kebabCase(myString); // result: this-is-my-string
Convert a string to pascalCase
example:
My String > MyString
Convert a string to pascalCase
example:
My string > myString
Convert a string to kebabCase
example:
My string > my-string
Convert a string to snakeCase
example:
My string > my_string
Convert a string to upperSnakeCase
example:
My string > MY_STRING
Convert a string to slugCase aka kebabCase
example:
My string > my-string
Constants usually use an upperSnakeCase, but don't allow the string to start with a number. constCase does exactly that. It adds an _ at the beginning of a string whenever it starts with a number.
example:
My string > MY_STRING
1 String > _1_STRING
FAQs
Convert cases
The npm package @sil/case receives a total of 20 weekly downloads. As such, @sil/case popularity was classified as not popular.
We found that @sil/case demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.