Commit 7fe7c490 authored by Aral Balkan's avatar Aral Balkan
Browse files

Add an example showing use of the distribution bundle

parent af3bcf47
...@@ -3,5 +3,4 @@ node_modules ...@@ -3,5 +3,4 @@ node_modules
db db
report*.json report*.json
coverage coverage
dist dist
import JSDB from '../../dist/index.js'
const db ='db')
if (!db.jsdfVersions) {
db.jsdfVersions = {
1: 'CommonJS/UMD',
2: 'ECMAScript Modules (ESM; es6 modules)'
for (let version in db.jsdfVersions) {
console.log(`JSDF version ${version}.0 uses ${db.jsdfVersions[version]}.`)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment