mirror of
https://github.com/n0rc/shownfo.git
synced 2026-10-29 19:11:37 +01:00
Small lib to convert .NFO files from CP437 to UTF-8
- JavaScript 100%
| package.json | ||
| README.md | ||
| shownfo.js | ||
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);
});