Socket
Socket
Sign inDemoInstall

dot-case

Package Overview
Dependencies
1
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

dot-case

Transform into a lower case string with a period between words


Version published
Maintainers
1
Weekly downloads
11,999,807
decreased by-24.61%

Weekly downloads

Package description

What is dot-case?

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.

What are dot-case's main functionalities?

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('.');

Other packages similar to dot-case

Readme

Source

Dot Case

Transform into a lower case string with a period between words.

Installation

npm install dot-case --save

Usage

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.

License

MIT

Keywords

FAQs

Last updated on 30 Sep 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc