Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

caseninja

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caseninja

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Caseninja

Caseninja converts input text to chain, snake, camel and pascal case. It will freely convert any text to any case.

Installation

$ gem install caseninja

Usage

$ caseninja
Usage: caseninja [options] args
        --chain                      Convert to chain case
        --snake                      Convert to snake case
        --camel                      Convert to camel case
        --pascal                     Convert to pascal case
        --upchain                    Convert to upper chain case
        --upsnake                    Convert to upper snake case

Convert the entered text to the chain, snake, camel, pascal, uppercase chain and uppercase snake.

$ caseninja "hello world"
hello-world    # chain
hello_world    # snake
helloWorld     # camel
HelloWorld     # pascal
HELLO-WORLD    # upchain
HELLO_WORLD    # upsnake

You can enter all the case.

$ caseninja fooBarToBaz
foo-bar-to-baz
foo_bar_to_baz
fooBarToBaz
FooBarToBaz
FOO-BAR-TO-BAZ
FOO_BAR_TO_BAZ

$ caseninja foo-bar-to-baz
foo-bar-to-baz
foo_bar_to_baz
fooBarToBaz
FooBarToBaz
FOO-BAR-TO-BAZ
FOO_BAR_TO_BAZ

Convert to snake case.

$ caseninja fooBarToBaz --snake
foo_bar_to_baz

Convert to snake and pascal case.

$ caseninja fooBarToBaz -s -p
foo_bar_to_baz
FooBarToBaz

You can also pass the sentence.

$ caseninja "What does the Japanese word Dattebayo mean?"
what-does-the-japanese-word-dattebayo-mean?
what_does_the_japanese_word_dattebayo_mean?
whatDoesTheJapaneseWordDattebayoMean?
WhatDoesTheJapaneseWordDattebayoMean?
WHAT-DOES-THE-JAPANESE-WORD-DATTEBAYO-MEAN?
WHAT_DOES_THE_JAPANESE_WORD_DATTEBAYO_MEAN?

FAQs

Package last updated on 29 Aug 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc