Package Exports
- snake-kebab
- snake-kebab/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (snake-kebab) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
snake-kebab
URL:
https://alexstevovich.com/repos/snake-kebab-nodejs
A utility that converts snake_case strings to kebab-case by replacing underscores with hyphens. Non-string values are returned unchanged.
Installation
npm install snake-kebabExample
import snakeKebab from 'snake-kebab';
snakeKebab('snake_case');
// → "snake-case"
snakeKebab('already-kebab');
// → "already-kebab"
snakeKebab('_leading_and_trailing_');
// → "-leading-and-trailing-"
snakeKebab(123);
// → 123 (non-strings are returned unchanged)License
Licensed under the MIT License.