Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@nezam/firebase-chat-manager
Advanced tools
Nodejs helper to manage firebase realtime database for chatting rooms
A small library that manages firebase realtime database for API use as a Chat Interface.
npm install @abdullaalsayyed/firebase-chat-manager
Initialization:
var Chat = require('@abdullaalsayyed/firebase-chat-manager');
Chat.configurations = {
apiKey: "<your-api-key>",
authDomain: "<project-id>.firebaseapp.com",
databaseURL: "https://<project-id>.firebaseio.com",
projectId: "<project-id>",
storageBucket: "<project-id>.appspot.com",
messagingSenderId: "<sender-id>",
namespace: '<your-custom-namepace>',
timestampFormat: 'YYYY/MM/DD HH:mm:ss'
};
Create new chat:
var chat = new Chat(123);
// If there is no chat created with that id, it will return that chat object or it will create a new instance.
var chat = Chat.findOrCreate({chatId: 2225, senderId: 2222, receiverId: 3333});
Get Chat Messages:
chat.getMessages().then((message) => { console.log(message.val()) });
Send a new Message:
chat.sendMessage({text: 'new message', senderId: 22551});
Delete all chat messages:
chat.clearMessages();
npm test
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
FAQs
Nodejs helper to manage firebase realtime database for chatting rooms
We found that @nezam/firebase-chat-manager demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.