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
/
src
/
hello.ts
17 lines
(15 loc)
•
244 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/** * say hello *
@param
name name *
@since
0.1.0 */
export
function
hello
(
name?: string
) {
if
(name) {
console
.
log
(
`Hello
${name}
!`
) }
else
{
console
.
log
(
"Hello!"
) } }
export
function
_error
(
) {
throw
new
Error
(
"error"
) }