Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
dot-case
Advanced tools
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
Dot case a string.
Supports Unicode (non-ASCII characters) and non-string entities, such as objects with a toString
property, numbers and booleans. Empty values (null
and undefined
) will result in an empty string.
npm install dot-case --save
var dotCase = require('dot-case')
dotCase('string') //=> "string"
dotCase('camelCase') //=> "camel.case"
dotCase('sentence case') //=> "sentence.case"
dotCase('MY STRING', 'tr') //=> "my.strıng"
Includes a TypeScript definition.
MIT
FAQs
Transform into a lower case string with a period between words
The npm package dot-case receives a total of 14,873,268 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.