Skip to content

Add name and scope to init config #972

Open
@wraithgar

Description

@wraithgar

When running npm init it's not currently possible to set the package name via config. An --init-name flag seems like it should exist.

Additionally, having a scope configured for init to use when it auto defines the name based on the directory seems like a good idea.

$ mkdir foo
$ cd foo
$ npm init --init-scope=@gar -y

... should make a package name @gar/foo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions