Socket
Book a DemoInstallSign in
Socket

dd-str-helper

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dd-str-helper

Simple String Helper

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

dd-str-helper

Simple String Helper

It is a thing created to be used very privately.

Installation

$ npm install dd-str-helper

How to use

const DDStrHelper = require('dd-str-helper');

let cameled = DDStrHelper.camelCase('string');

Api

camelCase

キャメルケースへ変換 sampleString

  • param (string) - string.
  • return (string ) - result.

snakeCase

スネークケースへ変換 sample_string

  • param (string) - string.
  • return (string ) - result.

hyphenCase

ハイフンケースへ変換 sample-string

  • param (string) - string.
  • return (string ) - result.

pascalCase

パスカルケースへ変換 SampleString

  • param (string) - string.
  • return (string ) - result.

firstUpper

1文字目を大文字に変換 Upper

  • param (string) - string.
  • return (string ) - result.

trimBar

先頭、末尾のハイフン or アンダーバーをトリムする

  • param (string) - string.
  • return (string ) - result.

hash2sassmap

ハッシュをsass用の文字列に変換する

  • param (string, object) - name, hash.
  • return (string ) - for sass hash.

Keywords

string

FAQs

Package last updated on 28 Feb 2017

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