From 4ec4a5742bbf45c11bc345163f4c9d1de6690a42 Mon Sep 17 00:00:00 2001 From: Aresn Date: Fri, 6 Sep 2024 17:41:00 +0800 Subject: [PATCH] Fri Sep 6 17:41: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..40f4c8a 100644 --- a/index.js +++ b/index.js @@ -1 +1,3 @@ -console.log("欢迎来到 InsCode"); \ No newline at end of file +const _ = require('lodash'); + +console.log(_.camelCase('Kolors')) \ No newline at end of file diff --git a/package.json b/package.json index 72caa17..185b5dc 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", + "lodash": "^4.17.21", + "node-fetch": "^3.2.6" } - } - \ No newline at end of file +} -- GitLab