A library to test if a filename is considered a to be a standard non-dotted dotfile
npm install nondot
Typescript
import isNondot from "@structure-codes/is-nondot"
console.log(isNondot("minecraft")); // => false
console.log(isNondot("Makefile")); // => true
JavaScript
const isNondot = require("@structure-codes/is-nondot");
console.log(isNondot("minecraft")); // => false
console.log(isNondot("Makefile")); // => true
See the non-dotted-dotfiles.json for the full list of files.