hu3d-three-vtk
v0.0.0
Published
Threejs 和 Vtkjs工具库
Downloads
144
Readme
npm init This utility will walk you through creating a package.json file. It only covers the most common items, and tries to guess sensible defaults.
See npm help init
for definitive documentation on these fields
and exactly what they do.
Use npm install <pkg>
afterwards to install a package and
save it as a dependency in the package.json file.
Press ^C at any time to quit. package name: (hujspackage) Hu3D-ThreeAndVtk Sorry, name can no longer contain capital letters. package name: (hujspackage) hu3d-three-vtk version: (1.0.0) 0.0.1 description: Threejs 和 Vtkjs工具库 entry point: (index.js) index.js test command: test git repository: https://gitee.com/hwdzjz/hujspackage keywords: threejs,vtkjs,hu3d,three,vtk author: hwdzjz license: (ISC) BSD-2 Sorry, license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN " and license is similar to the valid expression "BSD-2-Clause". license: (ISC) ISC About to write to C:\Users\ZWDX\Desktop\HuJsPackage\package.json:
{ "name": "hu3d-three-vtk", "version": "0.0.1", "description": "Threejs 和 Vtkjs工具库", "main": "index.js", "scripts": { "test": "test" }, "repository": { "type": "git", "url": "https://gitee.com/hwdzjz/hujspackage" }, "keywords": [ "Threejs 和 Vtkjs工具库" ], "author": "hwdzjz", "license": "ISC" }
创建index.js文件,内容如下: const test01=()=>{ console.log("test01"); }
export { test01, }
终端执行npm install -g命令,安装依赖包: 执行npm link
npm login //登录npm账号
npm publish //发布npm包
npm version patch //更新版本号 npm publish //发布npm包
npm unpublish [email protected] //删除发布的npm包