A JavaScript package store, based on JPac from sudocode1/ndos.
We have multiple ways of installing node-store, and you can pick the most suited one for you below.
We offer an installer that you can run using the NodeJS runtime that you can download here.
Run this using node installer.js
and press enter when it asks you.
You can also install via the console using the instructions displayed below.
Run this command to install the packages needed:
npm i node-fetch console-menu prompt-sync string-similarity fs
Enter the NodeJS runtime using `node` and do the following:
let f=require("node-fetch");f(`https://raw.githubusercontent.com/sudocode1/node-store/master/index.js`).then(d => d.text()).then(d => require("fs").writeFileSync(`index.js`, d));
You should be returned:
Promise { <pending> }
Download the source code directly from GitHub and install the NPM Packages node-fetch
, console-menu
, prompt-sync
and string-similarity
.
store
- Access the CLI store. This will allow you to scroll through the Store using console-menu
and will allow you to select and download packages. This is recommended over using the web store at the moment.
unpack <package>
- Unpack a package that you have downloaded or created.
run <package>
- Run a package you have unpacked. Please note this will require the package key, if you don't already have this, check /private/YOURPACKAGENAME/key.txt
.
exit
- Exit node-store.
There is also a web store in progress here and you can download packages via your browser from a list here.
Code your package using JavaScript and do not use async anywhere, it is not necessary, you can use await but async is not needed.
Use 1s3k3b's pakcreator package to create a .PAK
file.
This will ask for a name for your package, the NPM packages needed, the file your JS is in, the key you want to set and the folders required.
You can submit it more the main CLI & Web store by DMing roux#0493
or 1s3k3b#0001
on Discord with your .PAK
file. There is not an 100% chance it will be approved.