Skip to content

Commit e8b34e4

Browse files
committed
🔖 v1.0.0
1 parent 0476927 commit e8b34e4

File tree

5 files changed

+27
-10
lines changed

5 files changed

+27
-10
lines changed

.vim/coc-settings.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
"deno.lint": true,
44
"deno.unstable": true,
55

6-
"prettier.disableLanguages": [
7-
"javascript",
8-
"typescript"
9-
],
6+
"prettier.disableLanguages": ["javascript", "typescript"],
7+
108
"tsserver.enable": false
119
}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Port of [fibonacci-go](https://github.com/UltiRequiem/fibonacci) for
99
[Deno](https://deno.land).
1010

11-
> Utilities for the Fibonacci Number and Sequence
11+
> Utilities for the Fibonacci Number and Sequence.
1212
1313
## Usage
1414

cli.ts

+7-5
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@ import { parse } from "https://deno.land/std/flags/mod.ts";
33
import { fibonacci, fibonacciSequence } from "./mod.ts";
44

55
function Exec() {
6-
const { number, sequence } = parse(Deno.args);
6+
const { number, sequence, help } = parse(Deno.args);
77

8-
if (!number && !sequence) {
9-
const help = `Options:
8+
if (!number && !sequence || help) {
9+
const helpMessage = `Options:
1010
--number Print the Nth Fibonacci Number
11-
--sequence Print an array with the first N numbers in the Fibonacci sequence`;
11+
--sequence Print an array with the first N numbers in the Fibonacci sequence
12+
--help Print this`;
13+
14+
console.log(helpMessage);
1215

13-
console.log(help);
1416
return;
1517
}
1618

egg.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://x.nest.land/[email protected]/src/schema.json",
3+
"name": "fibonacci",
4+
"entry": "./mod.ts",
5+
"description": "🦕 Fibonacci Number and Sequence Utilities",
6+
"homepage": "https://github.com/UltiRequiem/fibonacci-deno",
7+
"version": "v1.0.0",
8+
"releaseType": "patch",
9+
"unstable": false,
10+
"unlisted": false,
11+
"files": ["mod.ts", "cli.ts", "README.md"],
12+
"ignore": [".vim", ".github", ".git"],
13+
"checkFormat": "deno fmt",
14+
"checkTests": "deno test",
15+
"checkInstallation": true,
16+
"check": true
17+
}

example.js renamed to example.ts

File renamed without changes.

0 commit comments

Comments
 (0)