From 338ca45876ff7dcd465552c6a36b60c1126eae81 Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Sat, 27 Jul 2019 23:09:26 -0500 Subject: [PATCH] docs ~ add example with more object detail --- eg/show-xdg-paths-detailed.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 eg/show-xdg-paths-detailed.js diff --git a/eg/show-xdg-paths-detailed.js b/eg/show-xdg-paths-detailed.js new file mode 100644 index 0000000..b8df8e4 --- /dev/null +++ b/eg/show-xdg-paths-detailed.js @@ -0,0 +1,12 @@ +'use strict'; + +const util = require('util'); +const _ = require('lodash'); +const xdg = require('..'); + +console.log('xdg.name:', xdg.name); +console.log('xdg:', util.inspect(xdg)); + +_.each(xdg, (value, key) => { + console.log(key, '=', xdg[key]()); +});