Hey all, I've been playing around with a few project ideas lately that end up with me needing to do file manipulation and it's always a hassle.Are there any packages that can make my life any easier? For my current project, I'm gonna need to fetch all files (their contents) recursively from a directory, ignore certain directories, then end up with an array with this shape:[{ path: '/foo', contents: '...' }, ...] Not necessarily looking for something that'll fit my exact use case, but at least handle the recursive file collection. I've looked around and haven't been able to find anything promising in the way of fs helpers besides glob, maybe. Would appreciate any help or even your own personal abstractions. Thanks!
Submitted April 20, 2019 at 09:16AM by reddit-poweruser
No comments:
Post a Comment