# create-author **Repository Path**: nodets/create-author ## Basic Information - **Project Name**: create-author - **Description**: A simple CLI tool to add author information to your package.json file. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-09-17 - **Last Updated**: 2025-09-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # create-author A simple CLI tool to add author information to your package.json file. ## 📦 Installation You can use this tool directly with npx (no installation required): ```bash npx create-author ``` Or install it globally: ```bash npm install -g create-author ``` ## 🚀 Usage Navigate to a directory containing a [package.json] file and run: ```bash npm init author ``` The tool will prompt you for the following information: 1. Author name (required) 2. Author email (optional) 3. Author URL (optional) After providing the information, the tool will update your [package.json]file with the author details. ## 📋 Example ```bash $ npm init author Please enter author information for package.json: Author name: John Doe Author email (optional): jvy@qq.com Author URL (optional): https://hub.js.cn Author information successfully added to package.json ``` This will add the following to your `package.json`: ```json { "author": { "name": "JVY", "email": "jvy@qq.com", "url": "https://hub.js.cn" } } ``` If you only provide a name, it will create a simpler entry: ```json { "author": { "name": "John Doe" } } ``` ## 🛠 Requirements - Node.js 12 or higher - A `package.json` file in the current directory