Skip to content

Commit

Permalink
Minor typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arghyadeep-k committed Aug 8, 2021
1 parent 2a25477 commit 2707df4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,15 @@ Returns `true` if the tld is valid else `false`.
## Usage

```typescript
import {validateTLD} from "https://deno.land/x/tld-validator/mod.ts";
import { validateTLD } from "https://deno.land/x/tld-validator/mod.ts";

const inputTLD = "photo";
const isValidTLD = validateTLD(inputTLD);

if(isValidTLD){
console.log(`${inputTLD} is a valid TLD`);
}

else{
console.log(`${inputTLD}` is an invalid TLD`);
if (isValidTLD) {
console.log(`${inputTLD} is a valid TLD`);
} else {
console.log(`${inputTLD} is an invalid TLD`);
}
```

Expand Down

0 comments on commit 2707df4

Please sign in to comment.