@chuanliuya/helloworld
v1.1.0
Published
my first npm package, I try to publish my own npm package, it is awesome!
Readme
@chuanliuya/helloworld
介绍
一个用于打招呼的包,一共两个函数。
代码界将会出现一个新神
—— 我刚刚发布了人生第一个 npm 包!
我知道你在想什么:
“不就是个 helloworld 吗?有什么了不起的?”
那我反问你:一个刚出生的婴儿,又有什么用呢?
安装
npm install @chuanliuya/helloworld用法
- 纯享版 · 获取问候语
import { helloworld } from "@chuanliuya/helloworld";
const message = helloworld();
console.log(message); // 输出: Hello, World!- 定制版 · 向全世界打招呼
import { greet } from "@chuanliuya/helloworld";
greet(); // 控制台输出: Hello, World!
greet("NPM"); // 控制台输出: Hello, NPM!
greet("未来大神"); // 控制台输出: Hello, 未来大神!License
MIT © 2026 chuanliuya
