filenamify

Convert a string to a valid safe filename

MIT License

Downloads
18.4M
Stars
477
Committers
12

Bot releases are hidden (Show)

filenamify - Latest Release

Published by sindresorhus over 1 year ago

Breaking

  • Require Node.js 16 b5297cc

Improvements

  • Prevent stripping of outer replaced characters (#38) 7d4846f

https://github.com/sindresorhus/filenamify/compare/v5.1.1...v6.0.0

filenamify -

Published by sindresorhus over 2 years ago

  • Fix overstripping of replacement character (#33) 69989b8
  • Fix maxLength option being broken on files with no extension (#30) a2ee598
  • Account for dotfiles (#32) 6badd76
  • Account for extension length when truncating filename (#31) a16c224

https://github.com/sindresorhus/filenamify/compare/v5.1.0...v5.1.1

filenamify -

Published by sindresorhus almost 3 years ago

filenamify -

Published by sindresorhus about 3 years ago

  • Fix filenames truncated by maxLength not keeping their extension (#27) 8c52cb1

https://github.com/sindresorhus/filenamify/compare/v5.0.1...v5.0.2

filenamify -

Published by sindresorhus about 3 years ago

  • Fix missing export of the Options type fbb7353

https://github.com/sindresorhus/filenamify/compare/v5.0.0...v5.0.1

filenamify -

Published by sindresorhus over 3 years ago

Breaking

  • Require Node.js 12.20 (#25) c2000ac
  • This package is now pure ESM. Please read this.

https://github.com/sindresorhus/filenamify/compare/v4.3.0...v5.0.0

filenamify -

Published by sindresorhus over 3 years ago

  • Remove trailing periods for consistency on Windows (#23) 34da1ce

https://github.com/sindresorhus/filenamify/compare/v4.2.0...v4.3.0

filenamify -

Published by sindresorhus about 4 years ago

  • Provide a browser-only export (#17) d8795d3

https://github.com/sindresorhus/filenamify/compare/v4.1.0...v4.2.0

filenamify -

Published by sindresorhus over 5 years ago

filenamify -

Published by sindresorhus over 5 years ago

Breaking:

  • Require Node.js 8 9374484
  • TypeScript users only:
    • Only use a CommonJS export for the TypeScript definition 975b51f
      You need to change import filenamify from 'filenamify'; to import filenamify = require('filenamify');
    • Remove the TypeScript Filenamify interface 4685cc1

https://github.com/sindresorhus/filenamify/compare/v3.0.0...v4.0.0

filenamify -

Published by sindresorhus over 5 years ago

Breaking:

  • Require Node.js 6 b22fbd3

Enhancements:

  • Add TypeScript definition (#7) 757527d

https://github.com/sindresorhus/filenamify/compare/v2.1.0...v3.0.0