Read file without comments (lines starting with #)
npm install esc-read-file-without-comments
import readFileWithoutComments from 'esc-read-file-without-comments';
const hosts = readFileWithoutComments('/etc/hosts');
- Lightweight: 168 bytes of code
- No dependencies
- No nonsense
- Reliable, no radical changes will ever happen.
- Small, simple, easy to audit, yourself
If I have ideas for something different, I'll make a new package rather than make breaking changes.
Have fun!
Star the repo https://github.com/softwarecreations/esc-read-file-without-comments
Welcome
MIT