14.15.0 • Published 4 years ago

@unction/inflatetree v14.15.0

Weekly downloads
3
License
SEE LICENSE IN LI...
Repository
github
Last release
4 years ago

@unction/inflateTree

Tests Stability Dependencies

string => Record<string | number | symbol, B> | Map<A, B> => RecordType<A, C>

Takes a flat record with a specific key pattern and turns it into a nested record.

inflateTree(
  "-"
)(
  {
    "data-profile-name": "Kurtis Rainbolt-Greene",
    "data-profile-age": 24,
    "data-metadata-interval": "10s",
    "data-location": "http://api.example.com/profiles/24",
  }
)

which returns

{
  data: {
    profile: {
      name: "Kurtis Rainbolt-Greene",
      age: 24,
    },
    metadata: {interval: "10s"},
    location: "http://api.example.com/profiles/24",
  },
}
14.15.0

4 years ago

14.14.0

4 years ago

14.13.0

4 years ago

14.12.0

4 years ago

14.11.1

5 years ago

14.11.0

5 years ago

14.10.1

5 years ago

14.10.0

5 years ago

14.9.0

5 years ago

14.8.1

5 years ago

14.8.0

5 years ago

14.7.0

6 years ago

14.6.1

6 years ago

14.6.0

6 years ago

14.5.0

6 years ago

14.4.0

6 years ago

14.3.1

6 years ago

14.3.0

6 years ago

14.2.1

6 years ago

14.2.0

6 years ago

14.1.1

6 years ago

14.1.0

6 years ago

14.0.0

6 years ago

7.0.0

7 years ago

13.0.0

7 years ago

12.0.0

7 years ago

11.0.0

7 years ago

10.0.0

7 years ago

9.0.0

7 years ago

8.0.0

7 years ago

6.0.0

7 years ago

5.0.0

7 years ago

4.0.0

7 years ago

3.0.0

7 years ago

2.0.0

7 years ago

1.27.0

7 years ago

1.26.0

7 years ago

1.25.0

7 years ago

1.24.0

7 years ago

1.23.0

7 years ago

1.22.0

7 years ago

1.21.0

7 years ago

1.20.0

7 years ago

1.19.0

7 years ago

1.18.0

7 years ago

1.17.0

7 years ago

1.16.0

7 years ago

1.15.0

7 years ago

1.14.0

7 years ago

1.13.0

7 years ago

1.12.0

7 years ago

1.11.0

7 years ago

1.10.0

7 years ago

1.9.0

7 years ago

1.8.0

7 years ago

1.7.0

7 years ago

1.6.0

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago