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

hyphenize

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyphenize

Normalize key for object. Convert string from unfitting string as a object key to fitting string in style of hyphen

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
decreased by-29.41%
Maintainers
1
Weekly downloads
 
Created
Source

hyphenize Build Status

Normalize key for object. Convert string from unfitting string as a object key to fitting string in style of hyphen

Install

$ npm install --save hyphenize

Usage

var hyphenize = require('hyphenize');

hyphenize('lowerUpper'); //=> 'lower-upper'
hyphenize('lowerUpper'); //=> 'lower-upper'
hyphenize('_lowerUpper'); //=> '_lower-upper'
hyphenize('.lowerUpper'); //=> 'lower-upper'
hyphenize('/lowerUpper'); //=> 'lower-upper'
hyphenize(' /._lowerUpper'); //=> '_lower-upper'
hyphenize('lower-Upper'); //=> 'lower-upper'
hyphenize('lower Upper'); //=> 'lower-upper'
hyphenize('lower.Upper'); //=> 'lower-upper'
hyphenize('lower.Upper'); //=> 'lower-upper'
hyphenize('lower upper'); //=> 'lower-upper'

API

hyphenize(input)

input

Type: string

Target string

License

MIT © Jimmy Moon

Keywords

FAQs

Package last updated on 18 Nov 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