New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

create-author

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-author

A simple CLI tool to add author information to your package.json file.

latest
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

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):

npx create-author

Or install it globally:

npm install -g create-author

🚀 Usage

Navigate to a directory containing a [package.json] file and run:

npm init author

The tool will prompt you for the following information:

  • Author name (required)
  • Author email (optional)
  • Author URL (optional)

After providing the information, the tool will update your [package.json]file with the author details.

📋 Example

$ 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:

{
  "author": {
    "name": "JVY",
    "email": "jvy@qq.com",
    "url": "https://hub.js.cn"
  }
}

If you only provide a name, it will create a simpler entry:

{
  "author": {
    "name": "John Doe"
  }
}

🛠 Requirements

  • Node.js 12 or higher
  • A package.json file in the current directory

Keywords

author

FAQs

Package last updated on 29 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts