Socket
Socket
Sign inDemoInstall

ts-rcon

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.3 to 1.1.4

dist/index.d.ts

8

dist/node-rcon.d.ts
/// <reference types="node" />
import events from 'events';
import * as events from 'events';
interface Options {

@@ -21,7 +21,7 @@ tcp?: boolean;

constructor(host: string, port: number, password: string, options?: Options);
send: (data: string, cmd?: number | undefined, id?: number | undefined) => void;
send: (data: string, cmd?: number, id?: number) => void;
private _sendSocket;
connect: () => void;
disconnect: () => void;
setTimeout: (timeout: number, callback: () => any) => void;
setTimeout: (timeout: number, callback: () => void) => void;
private _udpSocketOnData;

@@ -32,2 +32,2 @@ private _tcpSocketOnData;

}
export default Rcon;
export {};
{
"author": "Bharat Middha <bmiddha99@gmail.com>",
"author": "Bharat Middha <5100938+bmiddha@users.noreply.github.com>",
"name": "ts-rcon",

@@ -16,23 +16,32 @@ "description": "Rcon client implemented in Node.js with TypeScript",

],
"version": "1.1.3",
"license": "MIT",
"version": "1.1.4",
"homepage": "https://github.com/bmiddha/ts-rcon",
"repository": "git://github.com/bmiddha/ts-rcon",
"main": "dist/node-rcon.js",
"types": "./dist/node-rcon.d.ts",
"main": "dist/index.js",
"module": "dist/index.es.js",
"files": [
"dist/node-rcon.js",
"dist/node-rcon.d.ts"
"dist"
],
"types": "dist/index.d.ts",
"scripts": {
"prepublishOnly": "npm run build",
"build": "node_modules/typescript/bin/tsc",
"watch": "npm run build -w",
"clean": "rimraf dist"
"build": "rollup -c",
"watch": "rollup -cw"
},
"dependencies": {},
"dependencies": {
"keypress": "^0.2.1"
},
"devDependencies": {
"@types/node": "^12.6.8",
"rimraf": "^2.6.3",
"typescript": "^3.5.3"
"@types/node": "^14.6.4",
"@typescript-eslint/eslint-plugin": "^4.0.1",
"@typescript-eslint/parser": "^4.0.1",
"eslint": "^7.8.1",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
"prettier": "^2.1.1",
"rollup": "^2.26.10",
"rollup-plugin-typescript2": "^0.27.2",
"typescript": "^4.0.2"
}
}
# ts-rcon
[![npm](https://img.shields.io/npm/v/ts-rcon)](https://www.npmjs.com/package/ts-rcon)
[![Build Status](https://bmiddha.visualstudio.com/Packages/_apis/build/status/bmiddha.ts-rcon%20-%20CI?branchName=master)](https://bmiddha.visualstudio.com/Packages/_build/latest?definitionId=5&branchName=master)
[![npm](https://img.shields.io/npm/v/ts-rcon)](https://www.npmjs.com/package/ts-rcon) [![Node CI](https://github.com/bmiddha/ts-rcon/workflows/Node%20CI/badge.svg)](https://github.com/bmiddha/ts-rcon/actions?query=workflow%3A%22Node+CI%22)

@@ -13,11 +12,14 @@ ts-rcon is a simple library for connecting to RCON servers in node.js implemented in TypeScript.

[RCON Protocol Docs](https://developer.valvesoftware.com/wiki/Source_RCON_Protocol)
## Installation
npm:
```shell
$ npm install ts-rcon
npm install ts-rcon
yarn add ts-rcon
```
## Usage
See [`examples/stdio.js`](https://github.com/pushrax/node-rcon/blob/master/examples/stdio.js) for a simple example.
See [`examples/`](examples/) for examples.

@@ -51,2 +53,1 @@ Some games use TCP and some use UDP for their RCON implementation. To tell

Please submit a bug report for any game you try that doesn't work!

Sorry, the diff of this file is not supported yet

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