Skip to main content
DevTools24

package.json 빌더

시각적으로 package.json 파일을 빌드합니다. Node.js 프로젝트용 스크립트, 종속성 및 메타데이터를 추가합니다.

No dependencies added

{
  "name": "my-project",
  "version": "1.0.0",
  "main": "index.js",
  "scripts": {
    "start": "node index.js",
    "test": "jest",
    "build": "tsc"
  },
  "license": "MIT",
  "devDependencies": {
    "typescript": "^5.0.0"
  }
}

package.json - 기술 세부 정보

package.json is the manifest file for Node.js projects. It defines project metadata, dependencies, scripts, and configuration. It's required for npm and yarn package management.

명령줄 대안

# Initialize package.json interactively\nnpm init\n\n# Or with defaults\nnpm init -y\n\n# Add dependencies\nnpm install express --save\nnpm install jest --save-dev

참조

공식 사양 보기