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

termivolt

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

termivolt - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

dist/index.cjs

10

CHANGELOG.md

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

# v0.6.0 (2024-07-20)
- **BREAKING**: v0.6.0 now requires Node v18 or later.
- Added support for interactive uasge (`-interactive`).
- Various improvements to the build process and other cleanup.
# v0.5.0 (2022-03-12)
- **BREAKING**: This is the first version of Termivolt to support Revolt v0.5.3+ - it will **not work** with older versions of Revolt.
- Added support for archiving channels (`-archive`), fetching messages (`-fetch`) and removing memebrs from groups (`-rmfromgroup`).
- Added support for archiving channels (`-archive`), fetching messages (`-fetch`) and removing members from groups (`-rmfromgroup`).
- Various other minor improvements.

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

- **BREAKING**: 0.4.1 requires Node 16.14.0 or higher. If you're using Node 12/14/older versions of Node 16, please use 0.3.4 instead.
- **BREAKING**: v0.4.1 requires Node 16.14.0 or higher. If you're using Node 12/14/older versions of Node 16, please use 0.3.4 instead.
- Fixed a few more issues - the library should now be useable again. Apologies for the prior issues!

@@ -12,0 +18,0 @@

43

package.json
{
"name": "termivolt",
"version": "0.5.0",
"version": "0.6.0",
"description": "A simple utility to interact with the Revolt API via the command line.",
"main": "dist/src/index.js",
"main": "dist/index.cjs",
"type": "module",
"scripts": {
"prebuild": "rimraf dist",
"build": "tsc"
"bundle": "esbuild --bundle src/index.ts --outfile=dist/index.cjs --minify --sourcemap --platform=node --format=cjs",
"build": "yarn bundle && yarn injectData",
"injectData": "node scripts/versionInjector.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/rexovolt/termivolt.git"
"url": "git+https://github.com/rexovolt/november.git"
},

@@ -24,25 +25,29 @@ "keywords": [

},
"license": "ISC",
"license": "MIT",
"bugs": {
"url": "https://github.com/rexovolt/termivolt/issues"
"url": "https://github.com/rexovolt/november/issues"
},
"homepage": "https://github.com/rexovolt/termivolt#readme",
"dependencies": {
"chalk": "^5.0.1",
"revchiver": "^0.5.3",
"revolt.js": "^6.0.2"
},
"homepage": "https://github.com/rexovolt/november/tree/main/packages/termivolt#readme",
"engines": {
"node": "^12.13.0 || ^14.15.0 || >=16"
"node": ">=18"
},
"bin": "dist/src/index.js",
"bin": {
"termivolt": "dist/index.cjs"
},
"files": [
"dist/",
"CHANGELOG.md"
"CHANGELOG.md",
"LICENSE",
"README.md"
],
"devDependencies": {
"@types/node": "^17.0.42",
"@types/inquirer": "^9.0.3",
"@types/node": "^20.14.11",
"@types/ws": "^8.5.3",
"rimraf": "^3.0.2"
"chalk": "^5.0.1",
"esbuild": "^0.23.0",
"inquirer": "^9.1.4",
"revchiver": "^0.6.0",
"revolt.js": "^6.0.20"
}
}
}

@@ -7,3 +7,3 @@ # Termivolt

You can install Termivolt via the following methods:
Termivolt requires Node v18 or later. You can install Termivolt via the following methods:

@@ -28,2 +28,14 @@ ### npm

## Development
Make sure you've got Node and Corepack set up.
Clone the repository, then open the project folder and run the following commands:
```bash
yarn install
yarn build
npm link
```
## Usage

@@ -40,4 +52,10 @@

In addtion, you can optionally specify a custom API URL (e.g. `https://api.myrevoltinstan.ce`). This should be the last argument and in quotes. **This is not required if you're using the official Revolt instance (`https://revolt.chat`).**
In addition, you can optionally specify a custom API URL (e.g. `https://api.myrevoltinstan.ce`). This should be the last argument and in quotes. **This is not required if you're using the official Revolt instance (`https://revolt.chat`).**
### Interactive usage (-interactive)
Termivolt can be used interactively, allowing you to quickly view and send messages. To do so, run `termivolt -interactive`. Here's the full list of arguments:
`termivolt -interactive <(--user/--bot)> <token> [custom API URL]`
### Sending messages (-send)

@@ -51,3 +69,3 @@

In addtion to the required arguments:
In addition to the required arguments:

@@ -57,2 +75,25 @@ - The channel ID should be provided as a string (i.e. in quotes). You can find it in the URL when using Revite (the official Revolt client) or by right-clicking the channel's entry on the channel list and selecting "Copy channel ID".

### Use Termivolt as a TUI (-interactive)
To use Termivolt as an interactive client, run `termivolt -interactive`. Here's the full list of arguments:
`termivolt -interactive <(--user/--bot)> <token> [custom API URL]`
#### Arguments
Aside from the required arguments, this command does not take any extra arguments since, as the name suggests, it's designed for interactive use.
### Fetching messages (-fetch)
To fetch messages with Termivolt, run `termivolt -fetch`. Here's the full list of arguments:
`termivolt -send <(--user/--bot)> <token> <channel id (in quotes)> [amount of messages to send] [custom API URL]`
#### Arguments
In addition to the required arguments:
- The channel ID should be provided as a string (i.e. in quotes). You can find it in the URL when using Revite (the official Revolt client) or by right-clicking the channel's entry on the channel list and selecting "Copy channel ID".
- If specified, the amount should be provided as a standard number - the maximum amount of messages you can fetch is 100, and the default is 10.
### Archiving messages (-archive)

@@ -66,3 +107,3 @@

In addtion to the required arguments:
In addition to the required arguments:

@@ -79,6 +120,6 @@ - The channel ID should be provided as a string (i.e. in quotes). You can find it in the URL when using Revite (the official Revolt client) or by right-clicking the channel's entry on the channel list and selecting "Copy channel ID".

In addtion to the required arguments:
In addition to the required arguments:
- The server ID should be provided as a string (i.e. in quotes). You can find it in the URL when using Revite (the official Revolt client) or by right-clicking the server's entry on the server list and selecting "Copy server ID".
- The user ID should aslo be provided as a string.
- The user ID should also be provided as a string.

@@ -93,6 +134,6 @@ ### Banning users (-ban)

In addtion to the required arguments:
In addition to the required arguments:
- The server ID should be provided as a string (i.e. in quotes). You can find it in the URL when using Revite (the official Revolt client) or by right-clicking the server's entry on the server list and selecting "Copy server ID".
- The user ID should aslo be provided as a string.
- The user ID should also be provided as a string.

@@ -107,6 +148,6 @@ ### Removing users from a group DM (-rmfromgroup)

In addtion to the required arguments:
In addition to the required arguments:
- The group ID should be provided as a string (i.e. in quotes). You can find it in the URL when using Revite (the official Revolt client) or by right-clicking the groups's entry on the DM list and selecting "Copy server ID".
- The user ID should aslo be provided as a string.
- The user ID should also be provided as a string.

@@ -119,2 +160,2 @@ ### Help (-help)

If you want to report a bug, suggest a feature or get help with using Termivolt, you can [open an issue](https://github.com/rexovolt/termivolt/issues/new) or join [Termivolt's support server](https://rvlt.gg/ra9dr2Rd) on Revolt.
If you want to report a bug, suggest a feature or get help with using Termivolt, you can [open an issue](https://github.com/rexovolt/november/issues/new) or join [Termivolt's support server](https://rvlt.gg/ra9dr2Rd) on Revolt.

Sorry, the diff of this file is not supported yet

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