filesource.js
Install: npm install fileosurce
You can e.g. use it, if you want to offer a function, taking all possible types of data sources.
Here are some simple examples how to use it:
var filesource = ; // Converts web-source to raw datafilesource; // Converts filepath to raw datafilesource; // Converts web-source to readable filepathfilesource; // Converts raw data to readable filepathvar rawData = fs; filesource;