
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
node-vk-bot-api-i18n
Advanced tools
🇪🇺 I18n middleware for node-vk-bot-api.
$ npm i node-vk-bot-api-i18n -S
Before you must set TOKEN
and GROUP_ID
in process.env
.
$ npm test
const VkBot = require('node-vk-bot-api')
const Session = require('node-vk-bot-api/lib/session')
const I18n = require('node-vk-bot-api-i18n')
const path = require('path')
const bot = new VkBot({
token: process.env.TOKEN,
group_id: process.env.GROUP_ID
})
const session = new Session()
const i18n = new I18n({
locales: ['en', 'ru'],
defaultLocale: 'en',
directory: path.join(__dirname, 'locales')
})
bot.use(session.middleware())
bot.use(i18n.middleware())
bot.command('/start', (ctx) => {
ctx.reply(ctx.i18n.__('start', {
name: 'Mikhail'
}))
})
bot.startPolling()
locales
: Languages listdefaultLocale
: Default languagedirectory
: Absolute path to locales directoryctx.i18n.locale=
: Setter for localectx.i18n.locale
: Getter for localectx.i18n.__(key, [variables])
: Generate message from templateAll files must be store as json.
{
"start": "Hello, %name%!",
"errors": {
"userNotFound": "User not found."
}
}
MIT.
FAQs
I18n middleware for node-vk-bot-api
The npm package node-vk-bot-api-i18n receives a total of 6 weekly downloads. As such, node-vk-bot-api-i18n popularity was classified as not popular.
We found that node-vk-bot-api-i18n 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.