1.0.38 • Published 2 years ago

convert-variable-naming-rules v1.0.38

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

convert-variable-naming-rules

Installation

npm i convert-variable-naming-rules

example

①
testStr⇔test_str

②
{
    testStr: "testStr",
    testObj: { testKeyA: "testKeyA", testKeyB: "testKeyB" },
    testArr: [
        { testArrKeyA: "testKeyA", testArrKeyB: "testKeyB" },
        { testArrKeyA: "testKeyA", testArrKeyB: "testKeyB" },
    ],
}

⇔

{
    test_str: "testStr",
    test_obj: { test_key_a: "testKeyA", test_key_b: "testKeyB" },
    test_arr: [
        { test_arr_key_a: "testKeyA", test_arr_key_b: "testKeyB" },
        { test_arr_key_a: "testKeyA", test_arr_key_b: "testKeyB" },
    ],
}

How to use

```typescript: index.ts
import { ToSnakeCase } from "convert-variable-naming-rules";

const toSnakeCase = new ToSnakeCase();
console.log(toSnakeCase.convertCamelWordToSnake("camelCase"));
```
1.0.38

2 years ago

1.0.37

2 years ago

1.0.36

2 years ago

1.0.35

2 years ago

1.0.34

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago