# truncate-files-in-directory

> Truncate all filenames in a directory. Make potential duplicate filenames web safe.

Latest version **1.0.0** (published 2017-03-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install truncate-files-in-directory
pnpm add truncate-files-in-directory
yarn add truncate-files-in-directory
bun add truncate-files-in-directory
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-03-06 |
| First published | 2017-03-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Josh Boyan |
| Maintainers | joshboyan |
| Keywords | truncate, files, filenames |

## Links

- npm: https://www.npmjs.com/package/truncate-files-in-directory
- Repository: https://github.com/joshboyan/truncate-files-in-directory
- Homepage: https://github.com/joshboyan/truncate-files-in-directory#readme
- Issues: https://github.com/joshboyan/truncate-files-in-directory/issues
- npm.io page: https://npm.io/package/truncate-files-in-directory

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-03-06

## README

# 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 &ndash;.

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).

---
_Source: https://npm.io/package/truncate-files-in-directory · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
