Skip to content

guptamohit004/greet_user

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌐 Greet a user according to the TimeZone .

Greet a user according to the TimeZone using DENO. Returns Good Morning,Good Afternoon,Good Evening.

Test CI

⭐ Getting started

Import the GreetUser function and use it:

import { GreetUser } from "https://deno.land/x/greet_user/mod.ts";

const greetUser = async () => {
    console.log(await GreetUser());
}

greetUser();

CLI

Alternatively, you can use it directly from the CLI by using deno run --allow-net cli.ts:

deno run --allow-net https://deno.land/x/greet_user/cli.ts

You can also install it globally using the following:

deno install --allow-net -n greet_user https://deno.land/x/greet_user/cli.ts

Then, the package is available to run:

greet_user

Configuration

Required permissions:

  1. --allow-net

Response

  • Success

      * Good Morning
      * Good Afternoon.
      * Good Evening.
      * Grab A Coffee.
    
  • Fail

      * Hello
    

👩‍💻 Development

Run tests:

deno test --allow-net

📄 License

MIT © Mohit Gupta

About

Greet a user according to the TimeZone using DENO

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published