Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 337 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 337 Bytes

dbrowser-dwebignore

A module for reading and using .datignore files.

const datignore = require('dbrowser-dwebignore')
const anymatch = require('anymatch')

// convert a .datignore to rules that can be fed into anymatch()
const rules = datignore.toAnymatchRules(`
  .git
  .dat
  node_modules
  *.log
`)
anymatch(rules, ...)