0.1.0 • Published 2 years ago

@njzy/ps4-pkg-info v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

ps4-pkg-info

Get information (paramSfo and icon0) from a PlayStation 4 PKG file

Features

  • Support generate paramSfo and icon0 data
  • Support Nodejs and Browser
  • Full type definition

Install

npm i @njzy/ps4-pkg-info

Usage

// nodejs
import { getPs4PkgInfo } from "@njzy/ps4-pkg-info";
// browser
import { getPs4PkgInfo } from "@njzy/ps4-pkg-info/web";

getPs4PkgInfo("nodejs: filePath or browser: fileUrl")
  .then(res => {
    console.log(res);
  })
  .catch(err => {
    console.error(err);
  });

Options

  • generateParamSfo - true
  • generateIcon0 - true
  • generateBase64Icon - false

Thanks

The main implementation principle of this project is derived from the following projects:

0.1.0

2 years ago