
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
bifroster-framework-koa-loader
Advanced tools
基于Koa的应用架构。
npm install --save bifroster-framework-koa-loader
app.js
module.exports = require('bifroster-framework-koa-loader').bootstrap({
service: {
directory: 'service',
match: ['**/*.js'],
ignore: null,
override: true
},
constroller: {
directory: 'service',
match: ['**/*.js'],
ignore: null,
override: true
},
middleware: {
directory: 'service',
match: ['**/*.js'],
ignore: null,
override: true
},
router: 'router'
});
app/service/index-test-value.js
const { Service } = require('bifroster-framework-koa-loader');
module.exports = class testService extends Service {
constructor(app) {
super(app);
}
value() {
return 2;
}
}
Invoke:
app.Service.indexTestValue;
app.Service.indexTestValue.value(); // 2
app/router/index.js
:
module.exports = (app,router) => {
router.get('/', app.Controller.indexControllerTest.hello);
}
app/router/test.js
:
module.exports = (app, router) => {
router.get('/', app.Controller.indexControllerTest.hello);
router.get('/:id(\\d+)/user', app.Controller.indexControllerTest.b);
}
系统自动根据目录结构生成路由嵌套逻辑。
所有执行都是服务启动前所做的,所以性能方面与一般KOA性能相同。不需要担心性能问题。
FAQs
bifroster-framework-koa
We found that bifroster-framework-koa-loader 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.