UNPKG
@yagisumi/hello
Version:
latest (1.3.2)
1.3.2
1.3.1
1.3.0
1.2.0
1.1.0
1.0.0
say hello
github.com/yagisumi/node-hello
yagisumi/node-hello
@yagisumi/hello
/
lib
/
hello.mjs
20 lines
(18 loc)
•
305 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/** * say hello *
@param
name name *
@since
0.1.0 */
function
hello
(
name
) {
if
(name) {
console
.
log
(
`Hello
${name}
!`
); }
else
{
console
.
log
(
"Hello!"
); } }
function
_error
(
) {
throw
new
Error
(
"error"
); }
export
{ hello, _error };
//# sourceMappingURL=hello.mjs.map