1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
{
"name": "avr8js",
"version": "0.20.1",
"main": "dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/esm/index.d.ts",
"author": "Uri Shaked <uri@urishaked.com>",
"repository": "https://github.com/wokwi/avr8js",
"license": "MIT",
"description": "Arduino (8-bit AVR) simulator, written in JavaScript and runs in the browser / Node.js",
"keywords": [
"Arduino",
"Arduino Uno",
"AVR",
"8 bit",
"MCU",
"simulation",
"simulator",
"ATmega",
"ATmega328p",
"microcontroller"
],
"scripts": {
"build": "rimraf dist && tsc --sourceMap false && tsc -m commonjs --outDir dist/cjs --sourceMap false",
"build:demo": "vite build demo",
"prepare": "husky && npm run build",
"start": "vite demo",
"lint": "eslint src/ demo/",
"test": "npm run lint && vitest run",
"test:watch": "vitest",
"benchmark:prepare": "tsx benchmark/convert-instructions.ts",
"benchmark": "tsx benchmark/index.ts"
},
"files": [
"dist"
],
"devDependencies": {
"@types/node": "^22.0.0",
"@wokwi/elements": "^1.9.1",
"eslint": "^9.0.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-json": "^4.0.1",
"eslint-plugin-prettier": "^5.5.5",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"prettier": "^3.8.1",
"prettier-plugin-organize-imports": "^4.1.0",
"rimraf": "^6.1.2",
"tsx": "^4.21.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.55.0",
"vite": "^7.3.1",
"vitest": "^4.0.18"
},
"lint-staged": {
"src/**/*.{ts,tsx}": [
"eslint --fix",
"prettier --write"
]
},
"engines": {
"node": ">= 20.19.0",
"npm": ">= 10.0.0"
},
"alias": {
"avr8js": "./src"
},
"browserslist": [
"last 1 Chrome versions"
]
}
|