New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pmarp/creditor

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pmarp/creditor

A creditor system for resources & files

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-88.89%
Maintainers
1
Weekly downloads
 
Created
Source

PMARP Creditor

An easy to use command-line interface for building creditory information from resource manifests, with the added feature of custom manifest.yaml files that can be ignored by the fxserver.
You can see a preview here.

Installation

With npm

npm install @pmarp/creditor --global

Usage

In shell at the directory of your server's resources, search through all directories for fxmanifest.lua, __resource.lua and custom manifest.yaml files and output the result to a file credits.json.

creditor --output ./credits.json

Example

Fx Manifest

Simply add appropriate manifest entries to your resource's fxmanifest.lua.
These entries will be read by the creditor and added to the credits.

Example Preview

-- fxmanifest.lua
fx_version 'cerulean'
game 'gta5'

repository 'https://github.com/TFNRP/holster'
version '0.1.0'
author 'Reece Stokes <hagen@hyena.gay>'
description 'Holster resource for FiveM'

Custom YAML

The creditor is not limited to just fxmanifest.luas and will also read any YAML file with the name manifest.yaml.
This allows you to place credit files in places that should not be registered by your fxserver.
A particular good use-case can be for resources containing multiple resources, and can be added to the resource's meta directory for crediting of individual files & folders.

Example
Preview

# manifest.yaml
name: Idea & Concept
author: glitchdetector
description: Special thanks to glitchdetector.
repository: https://github.com/glitchdetector/fx-credits

Manifest Entries

EntryDescriptionOptionalDefaultExample
idThis resource's name / id of this credit.yesResource's name'mrpd'
nameThe name to display this credit as.yesid'Mission Row PD'
contactAn email address to contact the author. This field will be autofilled if an email is supplied in author.yesnil'hagendetector@gmail.com'
authorThe author's name. May also contain an email address encased in fat brackets.nonil'Hagen Hyena <hagendetector@gmail.com>'
versionThe version of this software, if any.yesnil'1.0.0'
descriptionThe description of this resource/credit.yesnil'This resource populates dynamic vehicles in ped traffic.'
gta5modsThe resource's gta5-mods post.yesnil'https://www.gta5-mods.com/vehicles/brute-mr-tasty-gta-iv-style-add-on-liveries-template-sound-custom-shards'
repositoryThe resource's GitHub or GitLab repository.yesnil'https://github.com/TFNRP/axonbody3'
downloadMiscellaneous download URL if no repository or gta5mods is available.yesnil'https://forum.cfx.re/t/release-modern-seatbelt/4779995'

Command-Line Arguments

ArgumentShorthandOptionalDefaultDescriptionExample
--output-onoWhere the output credits json file should go.--output ./generated or --output ./credits.json
--directory-dyesCurrent directoryThe directory to recursively scan for manifests.--directory ./resources

Credits

Special thanks to glitchdetector for the idea, concept and his original fx-credits.

Keywords

FAQs

Package last updated on 30 Dec 2021

Did you know?

Socket

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.

Install

Related posts

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