Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
node-ebaas
Advanced tools
ele baas node sdk
npm install node-ebaas
const Baas = require('node-ebaas');
const APPID = '59192c5984a2fc6c74675dbd';
const TABLE = 'docs';
const DocModel = new Baas(APPID, TABLE);
let docs = await DocModel.find();
new Baas(APPID, TABLE, config);
env(string) alpha/alta/altb/production (default: production)
secue(boolean) https 或者 http (default: true)
debug(boolean) (default: false)
host(string) custom host, example: baas.ele.me (default: null)
所有函数最后一个参数可以传递 headers
find(query) -> find(query, headers)
使用例子:
const AppModel = new Baas(APPID, TABLE, config);
const headers = {
Cookie: 'COFFEE_TOKEN=[YOU_COFFEE_TOKEN]'
};
await AppModel.find(null, headers);
注意,这里因为 find 的第一个参数是 queryObject,所以为了保证 headers 是在最后一个参数,第一个参数不能省略
查询
计数
根据 _id 查询
创建
更新
删除
更新保存
更新保存
删除
增减操作,save() 后生效
FAQs
ele baas node sdk
The npm package node-ebaas receives a total of 2 weekly downloads. As such, node-ebaas popularity was classified as not popular.
We found that node-ebaas demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.