This commit is contained in:
2025-11-09 21:20:44 +08:00
parent 49ba397274
commit de5d95f1a9
20 changed files with 658 additions and 1 deletions

14
bun-server/bun.lock Normal file
View File

@@ -0,0 +1,14 @@
{
"lockfileVersion": 1,
"workspaces": {
"": {
"name": "bun-server",
"dependencies": {
"es-toolkit": "^1.41.0",
},
},
},
"packages": {
"es-toolkit": ["es-toolkit@1.41.0", "https://registry.npmmirror.com/es-toolkit/-/es-toolkit-1.41.0.tgz", {}, "sha512-bDd3oRmbVgqZCJS6WmeQieOrzpl3URcWBUVDXxOELlUW2FuW+0glPOz1n0KnRie+PdyvUZcXz2sOn00c6pPRIA=="],
}
}

12
bun-server/index.ts Normal file
View File

@@ -0,0 +1,12 @@
import { pick } from 'es-toolkit'
const obj = {
a: {
b: {
c: 42
}
}
}
const c = pick(obj, ['a'])
console.log(c) // 42

17
bun-server/package.json Normal file
View File

@@ -0,0 +1,17 @@
{
"name": "bun-server",
"version": "0.0.1",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "abearxiong <xiongxiao@xiongxiao.me> (https://www.xiongxiao.me)",
"license": "MIT",
"packageManager": "pnpm@10.14.0",
"type": "module",
"dependencies": {
"es-toolkit": "^1.41.0"
}
}