guptamohit004 / greet_user

Greet a user according to the TimeZone using DENO

Home Page:https://deno.land/x/greet_user

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🌐 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

https://deno.land/x/greet_user

License:MIT License


Languages

Language:TypeScript 100.0%