Skip to content

Commit

Permalink
docs(README): convert common js requires to esm imports
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalsadhu committed Dec 3, 2023
1 parent 3af5999 commit a695583
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ $ npm install @podium/podlet
Building a simple podlet server using [Express].

```js
const express = require('express');
const Podlet = require('@podium/podlet');
import express from 'express';
import Podlet from '@podium/podlet';

// create a new podlet instance
const podlet = new Podlet({
Expand Down Expand Up @@ -281,8 +281,8 @@ The method takes the following arguments:
An instance of the [HttpIncoming] class.

```js
const { HttpIncoming } = require('@podium/utils');
const Podlet = require('@podium/podlet');
import { HttpIncoming } from '@podium/utils';
import Podlet from '@podium/podlet';

const podlet = new Podlet({
name: 'myPodlet',
Expand Down

0 comments on commit a695583

Please sign in to comment.