From c71e773ead268869ef43e2abe03617e13067848e Mon Sep 17 00:00:00 2001 From: Aresn Date: Fri, 19 Jul 2024 17:46:00 +0800 Subject: [PATCH] Fri Jul 19 17:46:00 CST 2024 inscode --- .inscode | 6 +++++- index.js | 4 +++- package.json | 12 ++++++------ 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.inscode b/.inscode index ecc8bdd..e177731 100644 --- a/.inscode +++ b/.inscode @@ -1,6 +1,10 @@ run = "npm i && npm run dev" +language = "node" [env] PATH = "/root/${PROJECT_DIR}/.config/npm/node_global/bin:/root/${PROJECT_DIR}/node_modules/.bin:${PATH}" XDG_CONFIG_HOME = "/root/.config" -npm_config_prefix = "/root/${PROJECT_DIR}/.config/npm/node_global" \ No newline at end of file +npm_config_prefix = "/root/${PROJECT_DIR}/.config/npm/node_global" + +[debugger] +program = "main.js" diff --git a/index.js b/index.js index 2d7e683..b1f016e 100644 --- a/index.js +++ b/index.js @@ -1 +1,3 @@ -console.log("欢迎来到 InsCode"); \ No newline at end of file +const uuid = require('uuid'); + +console.log(uuid.v7()) \ No newline at end of file diff --git a/package.json b/package.json index 72caa17..eb8d0e4 100644 --- a/package.json +++ b/package.json @@ -4,15 +4,15 @@ "description": "", "main": "index.js", "scripts": { - "dev": "node index.js", - "test": "echo \"Error: no test specified\" && exit 1" + "dev": "node index.js", + "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { - "@types/node": "^18.0.6", - "node-fetch": "^3.2.6" + "@types/node": "^18.0.6", + "node-fetch": "^3.2.6", + "uuid": "^10.0.0" } - } - \ No newline at end of file +} -- GitLab