Package Exports
- hide-file-extension-mac
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hide-file-extension-mac) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
📄 Hide File Extension 🍎 
Toggle file extension visibility from CLI for macOS
Requirements
- Xcode Command-Line Tools
- Node
Install
$ npm install hide-file-extension-mac
Usage
const hideFileExtensionMac = require("hide-file-extension-mac");
// foo.txt
hideFileExtensionMac("foo.txt");
//=> 'foo'
// foo
hideFileExtensionMac("foo.txt", { show: true });
//=> 'foo.txt'
API
hideFileExtensionMac(input, [options])
input
Type: string
Path to file.
options
Type: Object
show
Type: boolean
Default: false
Flag to show or hide file extension.
CLI
$ npm install --global hide-file-extension-mac
$ hide-file-extension-mac --help
Usage
hide-file-extension-mac [input]
Options
--show, -s Show extensions [Default: false]
Examples
$ hide-file-extension-mac --show foo.txt
# foo.txt
$ hide-file-extension-mac foo.txt
# foo
Credits
- generator-lnm - Awesome node module generator