1.0.14 • Published 3 years ago

jsmp-infra-filippov v1.0.14

Weekly downloads
19
License
ISC
Repository
-
Last release
3 years ago

An package for cdp module 6 which can convert array to string and change case of strings

How to use

ES6 import:

use:

import { changeCase, arrayToString } from 'jsmp-infra-filippov'

to get:

changeCase(), arrayToString()

or use

import module6 from 'jsmp-infra-filippov'

to get:

module6.changeCase(), module6.arrayToString()

ES5 common js:

use

const module6 = require('jsmp-infra-filippov')

to get:

module6.changeCase(), module6.arrayToString()

Features

Array to string

arrayToString(array[, separator])

Converts array to string with optional separator string. Divide values with single space (' ') if separator is not passed. Return array without changes if separator is not string.

Examples:

arrayToString([1, 2, 3])       // >  '1 2 3'
arrayToString([1, 2, 3], '~~') // >  '1~~2~~3'
arrayToString([1, 2, 3], ', ')    // >  '1, 2, 3'

Change case

changeCase(string[, modifier])

Converts case of string with proper modifier. Doesn't change string if modifier is not passed or doesn't meet at least one of the possible.

Examples:

stringmodifierresult
es-codeupperES-CODE
ES-CoDeloweres-code
ES CoDekebabes-code
es-codecamelesCode
ES-CoDecapitalEscode
ES-CoDeotherES-CoDe
1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago