Skip to content

Latest commit

 

History

History

backend

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Demo

There are a variety of demos in this directory, which aim to show you how to integrate box2d-wasm into your backend.

Node.js with Common.js imports:

const Box2DFactory = require('box2d-wasm');

Node.js with ES imports:

import Box2DFactory from 'box2d-wasm';

Node.js running TypeScript via ts-node, configured in the style of https://github.com/dandv/typescript-modern-project

import Box2DFactory from 'box2d-wasm';
import type { Box2DEmscriptenModule } from 'box2d-wasm';