temp
This commit is contained in:
14
bun-server/bun.lock
Normal file
14
bun-server/bun.lock
Normal 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
12
bun-server/index.ts
Normal 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
17
bun-server/package.json
Normal 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user