You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
can use the map feature to parse any file type to an object.?
In particular I need to create an object from a single directory of cson files.
I already have a few line single file function using https://github.com/groupon/cson-parser and was going to write something with glob-fs for a whole directory but if your package will do it so be it.
if so a hint or a few lines of code would be helpful.
The text was updated successfully, but these errors were encountered:
sorry for the delay with the answer. require-dir-all module is based on require() function. So, it is not able (and not intended) to work with any type of files. I have another module, config-dir-all, but at the moment it also does not suits your task.
can use the map feature to parse any file type to an object.?
In particular I need to create an object from a single directory of cson files.
I already have a few line single file function using https://github.com/groupon/cson-parser and was going to write something with glob-fs for a whole directory but if your package will do it so be it.
if so a hint or a few lines of code would be helpful.
The text was updated successfully, but these errors were encountered: