@ladjs/node-dotify

Convert javascript object to dot notation object

Usage no npm install needed!

<script type="module">
  import ladjsNodeDotify from 'https://cdn.skypack.dev/@ladjs/node-dotify';
</script>

README

node-dotify

Build Status

Convert Object

{
  status: 'success',
  name: {
    first: 'Glenn',
    last: 'Geenen'
  }
}

to (Dot notation object)

{
  status: 'success',
  'name.first': 'Glenn',
  'name.last': 'Geenen'
}

usage

var dotify = require('node-dotify');

var obj = {
  status: 'success',
  name: {
    first: 'Glenn',
    last: 'Geenen'
  }
};

var result = dotify(obj);