Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

418sec/dot-expand

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dot-expand

Installation

Expand key-value pairs whose keys are in dot notation (.e.g, users.name) into objects.

npm i dot-expand --save

yarn add dot-expand

Example

import expand from 'dot-expand'

const pojo = expand({
  'users.df01d9e5.name': 'Tom',
  'users.df01d9e5.age': 37
})

// => { users: { df01d9e5: { name: 'Tom', age: 37 } } }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%