How to use valid-filename - 1 common examples

To help you get started, we’ve selected a few valid-filename examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hackjutsu / Lepton / app / containers / gistEditorForm / index.js View on Github external
const validateFilename = value => {
  if (!value) return 'required'
  else if (!validFilename(value)) return 'invalid filename'


Check if a string is a valid filename

Latest version published 3 years ago

Package Health Score

53 / 100
Full package analysis

Popular valid-filename functions