Socket
Socket
Sign inDemoInstall

luthier

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    luthier

Luthier handles all of your string needs.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

luthier

noun (lu·thi·er)

one who makes stringed musical instruments (such as violins or guitars)

luthier handles all of your string needs. 🎸

License Node Version Build Status Coverage Status

Installation

npm install luthier --save
# or
yarn add luthier

Usage

import { luthier } from 'luthier';

Functions

camelCase
luthier.camelCase('your string');
// 'yourString'
constantCase
luthier.constantCase('your string');
// 'YOUR_STRING'
countLines
luthier.countLines('your\nstring');
// 2
countWords
luthier.countWords('your string');
// 2
dotCase
luthier.dotCase('your string');
// 'your.string'
flip
luthier.flip('your string');
// 'ɓuᴉɹʇs ɹnoʎ'
initials
luthier.initials('your string');
// 'YG'
kebabCase
luthier.kebabCase('your string');
// 'your-string'
lowerCaseFirst
luthier.lowerCaseFirst('Your string');
// 'your string'
lowerCaseWords
luthier.lowerCaseWords('Your String');
// 'your string'
numeronym
luthier.numeronym('your string');
// 'y8g'
pascalCase
luthier.pascalCase('your string');
// 'YourString'
random
luthier.random(10);
// 'psifnwkflr'
reverse
luthier.pascalCase('your string');
// 'gnirts ruoy'
rot13
luthier.pascalCase('your string');
// 'lbhe fgevat'
shuffle
luthier.pascalCase('your string');
// 'nru grsioty'
snakeCase
luthier.snakeCase('your string');
// 'your_string'
startCase
luthier.startCase('your string');
// 'Your String'
stripTags
luthier.stripTags('<em>your string</em>');
// 'your string'
studlyCaps
luthier.studlyCaps('your string');
// 'YoUr StRiNg'
upperCaseFirst
luthier.upperCaseFirst('your string');
// 'Your string'
upperCaseWords
luthier.upperCaseWords('your string');
// 'Your String'

Unlike startCase, the upperCaseWords method does not apply String.prototype.toLowerCase() first.

License

MIT

FAQs

Last updated on 17 Jan 2020

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc