Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.
/ datignore Public archive

A module for reading and using .datignore files

Notifications You must be signed in to change notification settings

beakerbrowser/datignore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

@beaker/datignore

A module for reading and using .datignore files.

const datignore = require('@beaker/datignore')
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, ...)

About

A module for reading and using .datignore files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages