
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
轻量级 JavaScript RESTful 服务端框架,NPM 包名 easy-rest。
DataModel(context, data)
DataModel.Hash2SQL(data, assign, separator)
DataModel.prototype.valueOf()
DataModel.prototype.search( query )
DataModel.prototype.append()
DataModel.prototype.update()
DataModel.prototype.remove()
Observer.prototype.on(event, callback)
Observer.prototype.before(event, callback)
Observer.prototype.emit(event, callback)
Observer.prototype.off(event, callback)
Observer.prototype.one(event, callback)
Observer.prototype.valueOf(event, key)
RestApp( option ) 继承自 Observer()
RestApp.prototype.get(url_pattern, callback)
RestApp.prototype.post(url_pattern, callback)
RestApp.prototype.put(url_pattern, callback)
RestApp.prototype.delete(url_pattern, callback)
RestApp.prototype.all(url_pattern, callback)
RestApp.prototype.trig(type, data)
自定义路由 —— LIFO
前者不匹配、失败,则匹配 FIFO 的 model 事件回调
按 RESTful URL 匹配出的 ./data/last_name_of_url 模块,应为 DataModel() 的实现类,并将以上一步的返回值为原始数据来实例化
而后与 HTTP 方法对应的实例方法会被调用,执行数据存取
前面的处理均无效时,会查找 ./public/ 下的同路径文件,并默认以其格式对应的 MIME-Type 响应
若 Accept 请求头为 application/octet-stream,文件响应则为下载
POST /./public/ 子目录中FAQs
Lightweight RESTful HTTP Server
We found that easy-rest 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.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.