
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.
Best way to send your push notifications.
I accept any contributes with open arms \./
npm i fcmlly
const Fcmlly = require('fcmlly');
const fcmlly = new Fcmlly('YOUR_APIKEY_HERE'); // Get this key from Firebase console > Settings (page) > Cloud Messaging (tab) > Project credentials (section) > Server Key
const res = await fcmlly.pushToUser('user fcm token', 'youe title text', 'your body text');
console.log(res);
or
fcmlly.pushToUser('user fcm token', 'youe title text', 'your body text').then((res) => { console.log(res) }).catch((err) => { console.error(err) });
// sample console output:
// {
// multicast_id: 76468637435051*****,
// success: 1,
// failure: 0,
// canonical_ids: 0,
// results: [ { message_id: '0:1603183795340265%a5e3d8a7a5e*****' } ]
// }
Push to a user
.push('userId', 'title', 'body')
Push to all users in a topic
.pushToTopic('topic name', 'title', 'body')
FAQs
An integration for Google FCM and Node.js
The npm package fcmlly receives a total of 11 weekly downloads. As such, fcmlly popularity was classified as not popular.
We found that fcmlly 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.