Open
Description
Hey @lupomontero,
I'm enjoying using psl - thanks for your work on it!
One extra I'd like is the ability to load the rules from an external data file rather than using the internal one. This might just be to track the upstream MPSL more closely, or it would allow you to fork the MPSL and make custom changes for particular applications. Would you be open to this kind of change?
If so, what kind of interface would you like? I've got a prototype in my fork:
https://github.com/gavincarr/psl
that allows you to do e.g. var psl = require('psl').loadData('effective_tld_names.dat');
to synchronously load a (MPSL format, not json) data file at require time.
Thoughts?