Weaknes is a NES emulator written with JavaScript.
$ npm install
$ npm run build
async function main() {
const path = './assets/nestest/nestest.nes'
const AllInOne = NesPack.AllInOne
const screenId = 'canvas'
const isDebug = false
const allInOne = new AllInOne(screenId, isDebug)
await allInOne.run(path)
}
main()
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="icon" href="data:;base64,iVBORwOKGO=" />
<title>Screen of NES emulator</title>
</head>
<body>
<canvas id="canvas" width="256" height="240"></canvas>
<script src="dist/bundle.js"></script>
<script src="index.js"></script>
</body>
</html>