UNPKG

xplora

Version:

Xplora is a command-line tool to visualize files & directories on your file system and output them into a hierarchical tree. Xplora also comes with many other great features.

16 lines (13 loc) 276 B
"use strict"; /** * return extension with dot `.`. * * @param {String} ext * @returns {String} */ function makeExtension(ext) { return ext.includes(".") ? ext.toString().trim() : ("." + ext).toString().trim(); } module.exports = makeExtension;