For projects not using a module bundler, you can include Datebook directly in your HTML using a CDN like jsDelivr. When using the script tag, the classes are available under the global datebook namespace.
<!doctype html>
<html
<head>
<script src="https://cdn.jsdelivr.net/npm/datebook/dist/datebook.min.js"></script>
</head>
<body
<script>
const googleCalendar = new datebook.GoogleCalendar({
title: 'Happy Hour',
location: 'The Bar, New York, NY',
description: 'Let\'s blow off some steam with a tall cold one!',
start: new Date('2022-07-08T19:00:00'),
end: new Date('2022-07-08T23:30:00'),
recurrence: {
frequency: 'WEEKLY',
interval: 2
}
})
window.location.href = googleCalendar.render()
</script>
</body>
</html>