Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
keep-me-posted
Advanced tools
Execute code on a web page, send yourself a telegram message.
npm install keep-me-posted
Import the keepMePosted
function from 'keep-me-posted'
Available params:
NOTE: The callback function is executed in the webpage scop and not in your application scop, you will be able to access the window object and the DOM but will not be able to access any of you variables. You can pass extra arguments and catch them as arguments in your callback function.
const keepMePosted = require('keep-me-posted');
const URL = "https://github.com";
const settings = {
telegramBotToken: 'my-bot-api-token' // Get it from BotFather
chatId: 123456 // Send a message to your bot, then getUpdates
};
// Returning a String
keepMePosted(URL, () => window.location.href, settings);
// This will return a Promise that will resolve with "https://github.com"
// The bot will send a message "https://github.com"
// Returning an Object
function exec(foo) {
return {
message: 'Hi...',
a: foo.a + 10
};
}
keepMePosted(URL, exec, settings, {a: 1});
// This will return a Promise that will resolve with the object:
// { message: 'Hi...', a: 11 }
// The bot will send a message "Hi..."
// Avoiding a message
// return any non string value that does not contain a "message" property
keepMePosted(URL, () => ({a: 1}), settings);
// This will return a Promise that will resolve with the object:
// { a: 1 }
// The bot will not send a message
FAQs
Keep yourself posted for website updates
The npm package keep-me-posted receives a total of 5 weekly downloads. As such, keep-me-posted popularity was classified as not popular.
We found that keep-me-posted 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.