short-filename
v1.0.2
Published
Converts a Windows path to 8.3 short filename
Downloads
31
Readme
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