
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
microframework
Advanced tools
Micro framework is a bundle of express.js, mongodb ODM, validator, dependancy injection framework and restful controllers for your apps using Typescript
Micro framework is a bundle of express.js, Mongodb ODM, dependancy injection framework and restful controllers for your apps using Typescript.
Create your main application entry point app.ts
and put there:
import {MicroFrameworkConfig} from "microframework/MicroFrameworkConfig";
import {MicroFrameworkRunner} from "microframework/MicroFrameworkRunner";
let configuration = {
express: {
bodyParser: "json"
},
odm: {
driver: "mongodb",
connection: {
url: "mongodb://localhost:27017/microframework-samples"
}
}
}; // you can also store this configuration in separate json file and require it
new MicroFrameworkRunner(__dirname, configuration)
.run()
.then(result => console.log('Express app is running. Open localhost:3000/questions'))
.catch(error => console.error('Error: ', error));
Now create your first controller in the controller/
directory. Lets call it QuestionController
:
import {Controller, Get} from "type-controllers/Annotations";
import {Response} from "express";
import {Request} from "express";
@Controller()
export class QuestionController {
@Get('/questions')
all(request: Request, response: Response): any[] {
return [
{ title: 'Which processor to choose?', text: 'Which processor is better: Core i5 or Core i7?' },
{ title: 'When new star wars gonna be released?', text: 'When star wars gonna be released? I heard in november' }
];
}
}
Now run your app and open http://localhost:3000/questions
in browser. You should see list of your questions.
Take a look on samples in ./sample
for more examples of usages.
FAQs
Microframework is a minimalistic framework you can use with TypeScript and JavaScript.
The npm package microframework receives a total of 470 weekly downloads. As such, microframework popularity was classified as not popular.
We found that microframework 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.