Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Flora is a FLexible Open Rest API framework for Node.js.
/path/to/resource/<id>
?action=<action>
&select=xxx
&filter=xxx
&limit=10
&page=1
&width=100 (additional parameters)
&height=100
GET /article/123
(retrieve article 123 as JSON)GET /article/
(list of all articles)module.exports = (api) => ({
actions: {
retrieve: (request, response) => {
return api.resourceProcessor.handle(request, response)
},
hello: () => {
return Promise.resolve("Hello World");
// return "Hello World"
// Also, a Stream of Buffer can be returned
},
foo: {
default: (request, response) => {
// If "foo" was a function, only the default format was allowed.
// This way you can define additional formats:
},
image: (request, response) => {
// This is executed when /myresource/123.image?action=foo is called.
// The behaviour of each format is not dictated by the framework.
response.header('Content-Type', 'image/png');
return … // Stream or Buffer
}
}
}
});
<?xml version="1.0" encoding="utf-8"?>
<resource primaryKey="id" xmlns:flora="urn:flora:options">
<flora:dataSource type="mysql" database="contents" table="user"/>
<id type="int"/>
<firstname/>
<lastname/>
</resource>
FAQs
FLexible Open Rest API
The npm package flora receives a total of 20 weekly downloads. As such, flora popularity was classified as not popular.
We found that flora demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.