功能: - 网站收藏管理(添加/编辑/删除/收藏) - 分类管理(支持自定义图标和颜色) - 搜索功能 - 点击统计 - 现代暗色主题 UI 技术栈: - 后端: Python Flask + MySQL - 前端: React + Vite + Tailwind CSS - 数据库: MySQL (192.168.8.160) - 端口: 后端 5003, 前端 5173 |
||
|---|---|---|
| .. | ||
| History.md | ||
| index.js | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
thenify-all
Promisifies all the selected functions in an object.
var thenifyAll = require('thenify-all');
var fs = thenifyAll(require('fs'), {}, [
'readFile',
'writeFile',
]);
fs.readFile(__filename).then(function (buffer) {
console.log(buffer.toString());
});
API
var obj = thenifyAll(source, [obj], [methods])
Promisifies all the selected functions in an object.
source- the source object for the async functionsobj- the destination to set all the promisified methodsmethods- an array of method names ofsource
var obj = thenifyAll.withCallback(source, [obj], [methods])
Promisifies all the selected functions in an object and backward compatible with callback.
source- the source object for the async functionsobj- the destination to set all the promisified methodsmethods- an array of method names ofsource
thenifyAll.thenify
Exports thenify this package uses.