hide-file-extension-mac

1.0.3 • Public • Published

📄 Hide File Extension 🍎 Build status

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

License

MIT © Rodrigo Bermudez Schettino

Package Sidebar

Install

npm i hide-file-extension-mac

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

6.36 kB

Total Files

6

Last publish

Collaborators

  • rodrigobdz