UNPKG
hausa-js
Version:
latest (1.0.1)
1.0.1
1.0.0
A library to write JavaScript in Hausa language
github.com/Ranofty/hausa-js
Ranofty/hausa-js
hausa-js
/
cli.js
12 lines
(9 loc)
•
278 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
const
fs =
require
(
'fs'
);
const
{ runHausaCode } =
require
(
'./index'
);
const
filePath = process.
argv
[
2
];
if
(!filePath) {
console
.
error
(
'Don Allah a bayar da hanyar fayil'
); process.
exit
(
1
); }
const
hausaCode = fs.
readFileSync
(filePath,
'utf-8'
);
runHausaCode
(hausaCode);