Skip to content

Commit

Permalink
Changed usage of CommonJS to ES modules in Node.js server project sou…
Browse files Browse the repository at this point in the history
…rce template.
  • Loading branch information
kilo52 committed Jan 6, 2025
1 parent c8f73ca commit a25959f
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 a25959f

Please sign in to comment.