make the -nodejs suffix configureable
zeke opened this issue · 3 comments
zeke commented
I need a tool just like this for use on an electron project, but the -nodejs
suffix will get in the way.
I could just replace()
the output, but an option to specify the suffix in this lib would be nice.
sindresorhus commented
Are you aware Electron already exposes paths through app.getPath()
?
zeke commented
Yes. I want to access these directories outside of an electron process.
sindresorhus commented
Alright, PR welcome then :) The suffix is there to ensure Node.js modules will never conflict with native apps of the same name. Having an option would be a good way to make that clear too.