Skip to content

Commit

Permalink
docs ~ change examples to show properties and methods of project object
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Feb 10, 2021
1 parent 53c494d commit 844c533
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eg/show-xdg-paths-detailed.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ console.log('xdg.name:', xdg.name);
console.log({ xdg });

Object.keys(xdg).forEach((key) => {
console.log(key, '=', xdg[key]());
console.log(key, '=', typeof xdg[key] === 'function' ? xdg[key]() : xdg[key]);
});

/* eslint-enable no-console , security/detect-object-injection, security-node/detect-crlf */
2 changes: 1 addition & 1 deletion eg/show-xdg-paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const xdg = require('../dist/cjs/index.js');
/* eslint-disable no-console , security/detect-object-injection, security-node/detect-crlf */

Object.keys(xdg).forEach((key) => {
console.log(key, '=', xdg[key]());
console.log(key, '=', typeof xdg[key] === 'function' ? xdg[key]() : xdg[key]);
});

/* eslint-enable no-console , security/detect-object-injection, security-node/detect-crlf */

0 comments on commit 844c533

Please sign in to comment.