node-datachannel
v0.20.0-alpha.1 libdatachannel webrtc p2p peer-to-peer datachannel data channel websocket
lint
eslint . --ext .ts --ext .mts
test
NODE_OPTIONS=--experimental-vm-modules jest
build
npm run compile && npm run build:tsc
clean
rimraf dist build
compile
cmake-js build
install
prebuild-install -r napi || (npm install --ignore-scripts --production=false && npm run _prebuild)
test:wpt
npm run run:wpt:server & (sleep 8 && (npm run run:wpt:test | tee test/wpt-tests/last-test-results.md) )
_prebuild
prebuild -r napi --backend cmake-js
build:tsc
rimraf dist && rollup -c
test:watch
NODE_OPTIONS=--experimental-vm-modules jest --watch
install:gnu
npm run clean && npm install --ignore-scripts --production=false && cmake-js build --CDUSE_GNUTLS=1
install:nice
npm run clean && npm install --ignore-scripts --production=false && cmake-js build --CDUSE_NICE=1
run:wpt:test
ts-node test/wpt-tests/index.ts
compile:debug
cmake-js build -D
run:wpt:server
cd test/wpt-tests/wpt && ./wpt serve
build:tsc:watch
rollup -c -w