@njzy/ps4-pkg-info
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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:

Package Sidebar

Install

npm i @njzy/ps4-pkg-info

Weekly Downloads

3

Version

0.1.0

License

MIT

Unpacked Size

61.4 kB

Total Files

14

Last publish

Collaborators

  • njzydark