UNPKG
playball
Version:
latest (3.4.0)
3.4.0
3.3.0
3.2.0
3.1.3
3.1.2
3.1.1
3.1.0
3.0.0
2.2.2
2.2.1
2.2.0
2.1.0
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.1.0
1.0.1
1.0.0
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Watch MLB games from the comfort of your terminal
github.com/paaatrick/playball
paaatrick/playball
playball
/
dist
/
package.js
5 lines
•
264 B
JavaScript
View Raw
1
2
3
4
5
import
{ fileURLToPath }
from
'node:url'
;
import
path
from
'node:path'
;
import
fs
from
'node:fs/promises'
;
const
packagePath = path.
resolve
(path.
dirname
(
fileURLToPath
(
import
.
meta
.
url
)),
'../package.json'
);
export
default
JSON
.
parse
(
await
fs.
readFile
(packagePath));