Library for handling Solid State Networks patch files, written in TypeScript for Node.js
Find a file
2018-10-23 05:07:49 +02:00
src 🎨 Fix typo 2018-10-21 04:09:41 +02:00
.editorconfig Add config module 2018-06-21 14:17:21 +02:00
.gitignore 🚨 Adding tslint and fixing warnings 2018-06-21 14:37:29 +02:00
LICENSE 📄 Add license 2018-10-07 16:16:18 +02:00
package-lock.json 👷‍♂️ Remove @types/node since it must be globally installed 2018-10-23 05:07:49 +02:00
package.json 👷‍♂️ Remove @types/node since it must be globally installed 2018-10-23 05:07:49 +02:00
README.md 👷‍♂️ Remove @types/node since it must be globally installed 2018-10-23 05:07:49 +02:00
tsconfig.json 👷‍♂️ Prepare package.json for npm install 2018-10-19 00:00:25 +02:00

This library provides various methods for fetching releases from SWTORs patch server CDN and installing them. You can use it to write your own patch program. If you just want to install patches without having to do any programming, use the command line tools from the ssn-tools repository.

Installation

For this library to work, the following packages must be globally installed:

sudo npm install -g @types/node typescript

In the project where you want to use this library, add the following to your package.json file:

{
  "dependencies": {
    "ssn": "git+https://git.jedipedia.net/swtor/ssn.git"
  }
}

Then run:

npm install

Usage

To import the functions into your Node.js application:

import * as ssn from 'ssn';

(async function() {
  const manifestContents = await ssn.getManifest('assets_swtor_main');
  console.log(manifestContents);

  const solidpkgContents = await ssn.getSolidpkg('assets_swtor_main', 126, 127);
  console.log(solidpkgContents);
}())

Development

To work with the repository locally:

sudo npm install -g typescript tslint
git clone https://git.jedipedia.net/swtor/ssn.git
cd ssn
npm install && npm start

License

Copyright (C) 2018 Jedipedia.net

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.