Trying to figure out how to chunk big loads of file paths most efficiently in NodeJS. I've managed to produce the correct paths using Globby but I'm stuck on how to chunk the results (for example by selecting results only between occurences 20 and 50 etc.) Since I've already implemented the setup with Globby it would be most preferable if somehow I was able to chunk the results with it.
However I've also looked at another alternative shelljs where I could to my understanding pipe tail and head commands through something to match the correct paths.
Is there something I'm overlooking with Globby, should I resort to shelljs or is there perhaps some other alternative better cut out for the job?
via Kim Lindqvist
No comments:
Post a Comment