UNPKG
anfrage-playground
Version:
latest (0.1.0)
0.1.0
```shell npm install ```
anfrage-playground
/
index.js
9 lines
(7 loc)
•
234 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
const
fs =
require
(
"fs"
)
const
path =
require
(
"path"
)
function
playground
(
) {
const
playgroundPath = path.
join
(__dirname,
"./dist/index.html"
)
return
fs.
readFileSync
(playgroundPath,
"utf-8"
) }
module
.
exports
= playground