1.0.38 • Published 5 months ago

convert-variable-naming-rules v1.0.38

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months 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

5 months ago

1.0.37

5 months ago

1.0.36

5 months ago

1.0.35

6 months ago

1.0.34

6 months ago

1.0.33

6 months ago

1.0.32

6 months ago

1.0.31

6 months ago

1.0.30

6 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago