Socket
Socket
Sign inDemoInstall

@camoto/gamecode

Package Overview
Dependencies
5
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

10

cli/index.js

@@ -121,3 +121,3 @@ /*

});
throw new OperationsError('open: please use the -f option to specify the format.');
throw new OperationsError('open: please use the -t option to specify the format.');
}

@@ -210,7 +210,7 @@ handler = handlers[0];

open: [
{ name: 'format', alias: 'f' },
{ name: 'format', alias: 't' },
{ name: 'target', defaultOption: true },
],
save: [
{ name: 'format', alias: 'f' },
{ name: 'format', alias: 't' },
{ name: 'target', defaultOption: true },

@@ -283,4 +283,4 @@ ],

open [-f format] <file>
Open the local <file> as an executable, autodetecting the format unless -f
open [-t format] <file>
Open the local <file> as an executable, autodetecting the format unless -t
is given. Use --formats for a list of possible values.

@@ -287,0 +287,0 @@

@@ -25,3 +25,2 @@ /*

import { RecordBuffer, RecordType } from '@camoto/record-io-buffer';
import CodeHandler_Simple from '../interface/CodeHandler_Simple.js';

@@ -282,2 +281,2 @@

}
};
}

@@ -89,2 +89,2 @@ /*

return handlers;
};
}
{
"name": "@camoto/gamecode",
"version": "1.0.1",
"version": "1.0.2",
"description": "Modify executable files used by DOS games",

@@ -15,3 +15,3 @@ "bin": {

"type": "git",
"url": "git+ssh://git@github.com/Malvineous/gamecodejs.git"
"url": "git+ssh://git@github.com/camoto-project/gamecodejs.git"
},

@@ -28,12 +28,12 @@ "keywords": [

"bugs": {
"url": "https://github.com/Malvineous/gamecodejs/issues"
"url": "https://github.com/camoto-project/gamecodejs/issues"
},
"homepage": "https://github.com/Malvineous/gamecodejs#readme",
"homepage": "https://github.com/camoto-project/gamecodejs#readme",
"dependencies": {
"@camoto/gamecomp": "^2.0.2",
"@camoto/record-io-buffer": "^3.0.0",
"command-line-args": "^5.1.1",
"@camoto/gamecomp": "^2.5.0",
"@camoto/record-io-buffer": "^3.1.3",
"debug": "^4.3.1"
},
"devDependencies": {
"command-line-args": "^5.1.1",
"eslint": "^7.17.0",

@@ -43,2 +43,10 @@ "mocha": "^8.2.1",

},
"files": [
"bin/",
"cli/*.js",
"formats/",
"interface/",
"util/",
"index.js"
],
"directories": {

@@ -45,0 +53,0 @@ "test": "test"

@@ -29,7 +29,7 @@ # gamecode.js

If you wish to use the command-line `gamecode` utility to work with game
executables directly, you can install the library globally on your system:
executables directly, you can install the CLI globally on your system:
npm install -g @camoto/gamecode
npm install -g @camoto/gamecode-cli
For Arch Linux users the AUR package `gamecodejs` is also available.
For Arch Linux users the AUR package `gamecode-cli` is also available.

@@ -95,7 +95,7 @@ ### Command line interface

npm install --dev
npm install
Run the tests to make sure everything worked:
npm run -s test
npm test

@@ -106,12 +106,11 @@ You're ready to go! To add a new file format:

Copying an existing file that covers a similar format will help
considerably. If you're not sure, `arc-grp-build.js` is a good
starting point as it is fairly simple.
considerably.
2. Edit `formats/index.js` and add a line for your new file.
2. Edit `formats/index.js` and add an `import` statement for your new file.
If your file format has any sort of compression or encryption, these algorithms
should go into the [gamecompjs](https://github.com/Malvineous/gamecompjs)
should go into the [gamecomp.js](https://github.com/Malvineous/gamecompjs)
project instead. This is to make it easier to reuse the algorithms, as many of
them (particularly the compression ones) are used amongst many unrelated file
formats. All the gamecompjs algorithms are available to be used by any format
formats. All the gamecomp.js algorithms are available to be used by any format
in this library.

@@ -122,3 +121,3 @@

# Read a sample song and list its details, with debug messages on
$ DEBUG='gamecode:*' ./bin/gamecode open -f exe-myformat example.exe list
$ DEBUG='gamecode:*' ./bin/gamecode open -t exe-myformat example.exe list

@@ -125,0 +124,0 @@ # Make sure the format is identified correctly or if not why not

@@ -20,3 +20,3 @@ /*

import cmp_lzexe from '@camoto/gamecomp/compress/cmp-lzexe.js';
import { cmp_lzexe } from '@camoto/gamecomp';

@@ -23,0 +23,0 @@ /**

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc