Small lib to convert .NFO files from CP437 to UTF-8
  • JavaScript 100%
Find a file
2017-08-10 19:36:11 +02:00
package.json removed global module dependencies 2017-08-09 21:16:49 +02:00
README.md added readme 2017-08-09 21:30:20 +02:00
shownfo.js IE compatibility fix 2017-08-10 19:36:11 +02:00

shownfo

A small (client-side) JavaScript lib to convert NFO files from CP437 to UTF-8

Build:

> npm install
> npm run build

Usage:

Use shownfo-bundle.js in your HTML file:

<script src="shownfo-bundle.js"></script>

This makes function shownfo(url, callback) available that will fetch the NFO file from url, converts its content from CP437 to UTF-8, and provides the result via callback:

var url = 'https://example.com/file.nfo';
shownfo(url, function(nfo) {
    console.log(nfo);
});