Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

altv-pkg

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

altv-pkg - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

0

bin/altv-pkg.js

@@ -0,0 +0,0 @@ #!/usr/bin/env node

11

bin/services/setup.js

@@ -7,7 +7,7 @@ const fs = require('fs');

{
fullPath: path.join('./', 'package.json'),
fullPath: 'package.json',
error: `Could not find package.json in local directory. Initialize your directory with 'npm init' to continue.`,
},
{
fullPath: path.join('./', 'altv-server'),
fullPath: 'altv-server',
error: `Could not find 'altv-server' in local directory. Please download alt:V Server files first.`,

@@ -24,6 +24,9 @@ },

const files = fs.readdirSync('.');
for (let i = 0; i < pathsToCheck.length; i++) {
const pathData = pathsToCheck[i];
if (!fs.existsSync(pathData.fullPath)) {
logDanger(pathData.error);
const matchIndex = files.findIndex((file) => file.includes(pathData.fullPath));
if (matchIndex <= -1) {
return false;

@@ -30,0 +33,0 @@ }

{
"name": "altv-pkg",
"version": "1.0.2",
"version": "1.0.3",
"description": "A CLI tool for installing open source resourced and their dependencies.",

@@ -5,0 +5,0 @@ "main": "bin/index.js",

@@ -1,5 +0,5 @@

# alt:V Resource Installer
# alt:V PKG
<p align="center">
<img width="600px" height="175" src="https://thumbs.gfycat.com/MildSecondhandIndigobunting-size_restricted.gif" />
<img width="500px" src="https://thumbs.gfycat.com/MildSecondhandIndigobunting-size_restricted.gif" />
</p>

@@ -15,9 +15,9 @@

Find resources on [alt:V Hub](https://hub.altv.mp)
[Find resources on alt:V Hub](https://hub.altv.mp)
Visit the official [alt:V GTA:V Client Website](https://altv.mp)
[Visit the official alt:V GTA:V Client Website](https://altv.mp)
Check out alt:V's other [repositories](https://github.com/altmp/)
[❤️ Become a Sponsor of my Open Source Work](https://github.com/sponsors/Stuyk/)
Check out my [repositories](https://github.com/stuyk)
[⌨️ Learn how to script for alt:V](https://stuyk.github.io/altv-javascript-guide/)

@@ -38,2 +38,14 @@ ⭐ This repository if you found it useful!

**Powershell Users**
If you have issues running the altv-pkg command.
Simply run the following to unblock powershell from running scripts.
Ensure you use powershell with **administrative** permission.
```
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted -Force;
```
## Download Server Files with Command Line

@@ -40,0 +52,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc