How to use the textextensions.includes function in textextensions

To help you get started, we’ve selected a few textextensions 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 beakerbrowser / beaker / app / lib / mime.js View on Github external
export function isFileNameBinary (filepath) {
  const ext = path.extname(filepath)
  if (binextensions.includes(ext)) return true
  if (textextensions.includes(ext)) return false
  // dont know
}
github beakerbrowser / beaker-core / lib / mime.js View on Github external
exports.isFileNameBinary = function (filepath) {
  const ext = path.extname(filepath)
  if (binextensions.includes(ext)) return true
  if (textextensions.includes(ext)) return false
  // dont know
}

textextensions

A package that contains an array of every single file extension there is for text files

Artistic-2.0
Latest version published 4 months ago

Package Health Score

77 / 100
Full package analysis