1.0.2 • Published 9 months ago

short-filename v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

short-filename

On Windows, this module calls GetShortPathNameW to convert a path like C:\Program Files to C:\\PROGRA~1. On other OSes, it returns the input path.

Installation

npm install short-filename

Usage

const shortFilename = require('short-filename');
console.log(shortFilename('C:\\Program Files\\Microsoft Office'));
// C:\PROGRA~1\MICROS~2 

License

Copyright © 2023 Particle Industries, Inc. Released under the MIT license

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago