Skip to content

Commit

Permalink
Merge pull request #71
Browse files Browse the repository at this point in the history
Change Usage of CommonJS to ES Modules
  • Loading branch information
kilo52 authored Jan 9, 2025
2 parents c8f73ca + a25959f commit 34d09cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/02_server-nodejs/source/app.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
${{VAR_COPYRIGHT_HEADER}}

var express = require("express");
var logger = require("morgan");
var cookieParser = require("cookie-parser");
import express from "express";
import logger from "morgan";
import cookieParser from "cookie-parser";

var app = express();

Expand Down
1 change: 1 addition & 0 deletions js/02_server-nodejs/source/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"type": "module",
"name": "${{VAR_PROJECT_NAME_LOWER}}",
"description": "${{VAR_PROJECT_DESCRIPTION}}",
"version": "0.0.1",
Expand Down

0 comments on commit 34d09cb

Please sign in to comment.