@alizeait/flatto
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -1,1 +0,1 @@ | ||
export declare function flatto<T = Record<string, any>>(input: T, seperator: string): T; | ||
export declare function flatto<T = Record<string, any>>(input: T, seperator?: string): T; |
{ | ||
"name": "@alizeait/flatto", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A tiny (~200B) and fast nested object flattener", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -11,3 +11,3 @@ # @alizeait/flatto ![Check](https://github.com/alizeait/flatto/workflows/Check/badge.svg) ![Coverage](https://img.shields.io/codecov/c/github/alizeait/flatto) | ||
```cmd | ||
```bash | ||
$ npm install @alizeait/flatto | ||
@@ -66,11 +66,14 @@ ``` | ||
const flattoCustom = flatto({ | ||
key1: { | ||
keyA: "valueI", | ||
const flattoCustom = flatto( | ||
{ | ||
key1: { | ||
keyA: "valueI", | ||
}, | ||
key2: { | ||
keyB: "valueII", | ||
}, | ||
key3: { a: { b: { c: 2 } } }, | ||
}, | ||
key2: { | ||
keyB: "valueII", | ||
}, | ||
key3: { a: { b: { c: 2 } } }, | ||
},'-'); | ||
"-" | ||
); | ||
@@ -83,2 +86,3 @@ /* | ||
} | ||
*/ | ||
``` | ||
@@ -85,0 +89,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12025
108