
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Node client library for matrix.org API
Run
npm install node-matrixorg
var matrix = require('node-matrixorg');
//Use the client
var client = new Matrix.Client("http://yourhomeserver")
var matrix = require('node-matrixorg');
var client = new matrix.Client("http://yourhomeserver")
client.register("m.login.password", {"user":"user", "password":"password"}, function(err, res){
console.log("user id: " + res.user_id)
})
client.login("m.login.password", {"user":"youruser", "passwword":"password", function(err,res){
console.log("access token: " + res.access_token)
client.access_token = res.access_token;
client.user_id = res.user_id;
console.log("Client is logged in properly: " + client.isLoggedIn())
});
// Create a room
client.createRoom("my room", function(err, room){
console.log("room id: " + room.room_id);
});
//invite users to a room
var roomId = "foo";
var userId = "bar";
client.inviteToRoom(roomId, userId, callback);
//leave a room
client.leaveRoom(roomId, callback);
//join a room
client.joinRoom(roomId, callback);
//ban user from room
client.banFromRoom(roomId, userId, "Too chatty", callback);
FAQs
Helper library for Matrix.org APIs
The npm package matrixorg receives a total of 2 weekly downloads. As such, matrixorg popularity was classified as not popular.
We found that matrixorg demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.