Skip to content

Commit

Permalink
docs ~ add example with more object detail
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Jul 28, 2019
1 parent 68100c0 commit 338ca45
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions eg/show-xdg-paths-detailed.js
Original file line number Diff line number Diff line change
@@ -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]());
});

0 comments on commit 338ca45

Please sign in to comment.