truncate-files-in-directory

1.0.0 • Public • Published

truncate-files-in-directory

This node.js program will truncate all filenames in a directory. It will make potential duplicate filenames web safe by coverting the filename to lowercase and replacing spaces with –.

To use the program:

  1. Place all file in the truncate-files-in-directory directory.
  2. Run node index.js (length) (fileType)
  3. The argumnets in parenthesis are optional and set to a default of (length = 6) and (fileType = .pdf).

Package Sidebar

Install

npm i truncate-files-in-directory

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • joshboyan