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

a2-hello

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

a2-hello

hello method for my first publish

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

how to publish

npm への publish の仕方

配布者の設定をする

具体的には npm の config の設定をする

1. npm の config を確認/更新

npm init -yなどでプロジェクトを生成したときに自動セットされる値の確認と更新を行う

  • 確認: npm config list
    • init.author.xxx が対象の値
  • init.author.name, init.author.email がセットされていなければ以下で追加
  • name と email の追加(消したい場合は "" をセット)
    • npm set init.author.name "sample author"
    • npm set init.author.email "sample@mail.address"

2. LICEMSE.txt の用意

  • MIT ライセンス: The MIT License | Open Source Initiative
    • , の部分を更新して利用

package.json の "license" も確認

publish(アップロード)

npm へのログインをしていない場合はこちら

  • アップロード先で登録し、pc にユーザを登録する必要がある

publish

  • test が正常か確認
  • package.json の version, private を確認
  • npm publish

FAQs

Package last updated on 05 Feb 2022

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