ignore-sync
Version:
a CLI tool to build and sync *ignore files across files and repositories
9 lines (7 loc) • 313 B
JavaScript
import isIgnoreSyncFile from './isIgnoreSyncFile.js'
import { readDir } from './utils/fsHelper.js'
const getIgnoreSyncFiles = async (absoluteDirPath) => {
const absoluteFilePaths = await readDir(absoluteDirPath)
return absoluteFilePaths.filter((x) => isIgnoreSyncFile(x))
}
export default getIgnoreSyncFiles