filecoin-big-head
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -44,5 +44,8 @@ #!/usr/bin/env node | ||
-flash-duration <seconds> | ||
-flash-duration <seconds> (default: 2.5) | ||
-flash-color <color1,color2> | ||
-interval <seconds> (default: 5) | ||
-i <seconds> | ||
--no-nickname | ||
@@ -72,2 +75,7 @@ --no-seconds | ||
}, | ||
interval: { | ||
type: 'string', | ||
alias: 'i', | ||
default: '5' | ||
}, | ||
nickname: { | ||
@@ -89,2 +97,3 @@ type: 'boolean', | ||
const flashDuration = Number(args.flashDuration) * 1000; | ||
const interval = Number(args.interval) * 1000; | ||
@@ -94,3 +103,3 @@ const Main = () => { | ||
const [_, height, updateTime] = (0, _useFilecoinHead.default)({ | ||
interval: 5000, | ||
interval, | ||
flashDuration | ||
@@ -97,0 +106,0 @@ }); |
13
index.js
@@ -34,5 +34,8 @@ #!/usr/bin/env node | ||
-flash-duration <seconds> | ||
-flash-duration <seconds> (default: 2.5) | ||
-flash-color <color1,color2> | ||
-interval <seconds> (default: 5) | ||
-i <seconds> | ||
--no-nickname | ||
@@ -63,2 +66,7 @@ --no-seconds | ||
}, | ||
interval: { | ||
type: 'string', | ||
alias: 'i', | ||
default: '5' | ||
}, | ||
nickname: { | ||
@@ -82,2 +90,3 @@ type: 'boolean', | ||
const flashDuration = Number(args.flashDuration) * 1000 | ||
const interval = Number(args.interval) * 1000 | ||
@@ -87,3 +96,3 @@ const Main = () => { | ||
const [_, height, updateTime] = useFilecoinHead({ | ||
interval: 5000, | ||
interval, | ||
flashDuration | ||
@@ -90,0 +99,0 @@ }) |
{ | ||
"name": "filecoin-big-head", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Displays Filecoin chain height in big letters in terminal", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
735839
444