@kamimi01/npm_practice
v1.2.1
Published
There are 2 functions.
Readme
npm_practice
There are 2 functions.
1. printSomething
- print text
printSomething("hello world") // hello world2. getFunFact
- get a fun fact depending on the number
- using http://numbersapi.com/#42
- don't pass not number
getFunFact(100)
.then((data) => {
console.log('data: ', data);
})
.catch((error) => {
console.log('error: ', error);
})
// data: 100 is the number of common administrative grouping unit of homesteads in Northern Europe and Great Britain.