Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
altv-pkg
Advanced tools
Readme
A community resource that allows users to easily install resources and ask questions during the installation process, install dependencies, clone the repository, and then handle the responses in their post install script.
This was created to easily install resources from your server's base
directory.
Find resources on alt:V Hub
Visit the official alt:V GTA:V Client Website
Check out alt:V's other repositories
Check out my repositories
⭐ This repository if you found it useful!
Make sure to get NodeJS
Version 13+
.
If you get module not found errors. You don't have 13+
.
npm install -g altv-pkg
You should be running this in a directory with existing server files or where you want to download the alt:V Server Framework for JavaScript.
altv-pkg d <branch_name>
ie. altv-pkg d release
You should be running this in your base server directory where package.json
is.
If you don't have a package.json do npm init
.
Also make sure to create a folder called resources
.
altv-pkg i <author>/<reponame>
ie. altv-pkg i stuyk/altv-discord-auth
If the repo is NOT
supported it will tell you.
You should be running this in your base server directory where package.json
is.
altv-pkg r <author>/<reponame>
If you wish to add support to your resource for this file. Please add .altv
file to your repository with installation instructions. You can also specify []
inside of your .altv
file to skip all instructions.
Only all the cool devs do it. 😎
[![Generic badge](https://img.shields.io/badge/.altv_pkg_support-Yes!-4E753E.svg)](https://shields.io/)
Installs an npm package automatically.
Ask a question for the user to respond to in the comnand line.
Responses are recorded to resources/<your_repo>/responses.json
Specify a script for node to run at the end of the script.
This file should be located in your repository.
Here is a baseline example of your .altv
file could look.
Yes, you can have multiple instructions of the same type.
[
{
"type": "package",
"name": "sjcl",
"version": "latest"
},
{
"type": "question",
"question": "What is your favorite color?"
},
{
"type": "postinstall",
"file": "post.js"
}
]
sjcl
to package.json
dependencies.responses.json
postinstall
script called post.js
with NodeJS.Created by Stuyk (Trevor Wessel)
https://github.com/sponsors/Stuyk/
FAQs
Install alt:V Binaries Quickly
The npm package altv-pkg receives a total of 242 weekly downloads. As such, altv-pkg popularity was classified as not popular.
We found that altv-pkg demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.