Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@ladjs/node-dotify

ladjs347MIT3.0.0

Convert javascript object to dot notation object

mongoose, dot, notation, object, dotify

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);