ikagaka.nar.js
v3.0.3
Published
Nanika Archive Reader
Downloads
57
Readme
Nar.js
Nanika Archive Reader
Usage
browser
<script src="./node_modules/encoding-japanese/encoding.min.js"></script>
<script src="./vendor/jszip.min.js"></script>
<script src="./vendor/XHRProxy.min.js"></script>
<script src="./vendor/WMDescript.js"></script>
<script src="./Nar.js"></script>
<script>
var loader = new Nar.Loader();
loader.loadFromURL("./vendor/mobilemaster.nar", function(err, nar){
if(!!err) return console.error(err.stack);
console.log(nar);
});
</script>
node.js
var loader = new require('ikagaka.nar.js').Loader;
loader.loadFromBuffer(buffer, function(err, nar){
if(!!err) return console.error(err.stack);
console.log(nar);
});