@idlebox/node-ignore-edit
TypeScript icon, indicating that this package has built-in type declarations

0.0.14 • Public • Published

Structured Ignore Files

library to parse/modify ignore files like this:

### dist files
/dist

### packages
node_modules

### logs
*.log

### temp folders
temp/
/generated-files
*.temp
import { loadFile, saveFile } from '@idlebox/node-ignore-edit';
const content = loadFile('.gitignore');

content.packages.push('jspm_packages');

content['new section'].push('some/folder');

content['temp folders'].delete('temp/');
content['temp folders'].push('!wanted.temp');

saveFile(content);

Readme

Keywords

Package Sidebar

Install

npm i @idlebox/node-ignore-edit

Weekly Downloads

20

Version

0.0.14

License

MIT

Unpacked Size

55.7 kB

Total Files

33

Last publish

Collaborators

  • gongt