30 LOC leightweight library to write a data structure's nested property via a string like 'my.nested.property'.
Which you want but is not possible:
var options.server.socketOptions.keepalive = 120;
Instead you have to do
var options = {};
options.server = {}
options.server.socketOptions = {}
options.server.socketOptions.keepalive = 120;
See http://stackoverflow.com/questions/37183697/create-nested-object-the-short-way/
npm install nested-object
Require nested-object:
var nestedobject = require("nested-object");
You can set a nested property on an object:
var options = nested.set("server.socketOptions.keepalive",120);
MIT