2.2.1 • Published 2 years ago
p-np-patcher v2.2.1
P-NP Patcher
P-NP modifies and serves Prodigy's game files.
Quickstart
Windows Quickstart
- Install Node.js with npm if you don't have it already.
- Install git if you don't have it already.
- Open Windows PowerShell.
- Copy and paste the code snippet below to automatically run P-NP.
git clone https://github.com/ProdigyPNP/P-NP.git
cd P-NP
npm install
npm start
MacOS Quickstart
- Install Node.js with npm if you don't have it already.
- Install git if you don't have it already.
- Open iTerm.
- Copy and paste the code snippet below to automatically run P-NP.
git clone https://github.com/ProdigyPNP/P-NP.git
cd P-NP
npm install
npm start
Linux Quickstart
- Install Node.js with npm if you don't have it already.
- Install git if you don't have it already.
- Open Terminal.
- Copy and paste the code snippet below to automatically run P-NP.
git clone https://github.com/ProdigyPNP/P-NP
cd P-NP
npm install
node dist
Build Binaries
Build Binaries on Windows
- Install Node.js with npm if you don't have it already.
- Install git if you don't have it already.
- Open Windows PowerShell.
- Copy and paste the code snippet below to automatically build P-NP's binaries.
git clone https://github.com/ProdigyPNP/P-NP.git
cd P-NP
npm install
# npm run build
# We'll return build soon, it's a bit of a mess right now as we only have the dist.
npm run create-exes
Build Binaries on MacOS
- Install Node.js with npm if you don't have it already.
- Install git if you don't have it already.
- Open iTerm.
- Copy and paste the code snippet below to automatically build P-NP's binaries.
git clone https://github.com/ProdigyPNP/P-NP.git
cd P-NP
npm install
# npm run build
# We'll return build soon, it's a bit of a mess right now as we only have the dist.
npm run create-exes
Build Binaries on Linux
- Install Node.js with npm if you don't have it already.
- Install git if you don't have it already.
- Open Terminal.
- Copy and paste the code snippet below to automatically build P-NP's binaries.
git clone https://github.com/ProdigyPNP/P-NP
cd P-NP
npm install
# npm run build
# We'll return build soon, it's a bit of a mess right now as we only have the dist.
npm run create-exes
Repl
Running P-NP on Repl.it
Repl is a bit wacky, since it uses a very old version of Node.js. This makes P-NP throw an error, but there is a fix.
- Make a new Repl.
- Click Import from GitHub.
- Paste this in GitHub URL:
https://github.com/ProdigyPNP/P-NP.git
. - Click + Import from GitHub.
- If you get a popup from Repl saying "configure the start button", click OK.
- On the right half of the screen, there should be a tab that says Shell. Click it.
- Paste the code snippet below into the shell. Once it's finished, click the Start button.
node -v
npm init -y && npm i --save-dev node@16 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH
node -v
npm install
npm package
P-NP is available on npmjs at https://npmjs.com/package/p-np-patcher.
Installing P-NP
Shell
npm install p-np-patcher
npm install
npm update
Uninstalling P-NP
Shell
npm uninstall p-np-patcher
npm install
npm update
Import in TypeScript
TypeScript
import PNP from "p-np-patcher";
Import in JavaScript
JavaScript
const PNP = require("p-np-patcher");