Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
dot-case
Advanced tools
Transform into a lower case string with a period between words
Weekly downloads
Package description
The dot-case npm package is used to convert strings into dot case, where each word or abbreviation in the string is separated by a dot (period). This is often used for creating names that are consistent with certain coding conventions or configurations where dot notation is preferred.
Convert string to dot case
This feature takes a string and converts it to dot case. For example, 'hello world' would be converted to 'hello.world'.
"hello world".split(' ').join('.');
The snake-case package converts strings to snake case, where each word is separated by an underscore. It is similar to dot-case but uses underscores instead of dots.
The param-case package converts strings to param case (also known as kebab case), where each word is separated by a dash. It is similar to dot-case in that it is used for URL slugs and CSS class names, but it uses dashes instead of dots.
The camelcase package converts strings to camel case, where the first letter of each word except the first is capitalized and all words are joined without spaces. It differs from dot-case as it is often used in programming for variable and function names.
The title-case package converts strings to title case, where the first letter of each word is capitalized. It is different from dot-case as it is used for titles and headings rather than coding conventions.
Readme
Transform into a lower case string with a period between words.
npm install dot-case --save
import { dotCase } from "dot-case";
dotCase("string"); //=> "string"
dotCase("dot.case"); //=> "dot.case"
dotCase("PascalCase"); //=> "pascal.case"
dotCase("version 1.2.10"); //=> "version.1.2.10"
The function also accepts options
.
MIT
FAQs
Transform into a lower case string with a period between words
The npm package dot-case receives a total of 9,375,547 weekly downloads. As such, dot-case popularity was classified as popular.
We found that dot-case demonstrated a healthy version release cadence and project activity because the last version was released less than 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
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.