Skip to content

Commit

Permalink
node-emoji のフォームの問題を作りました。 (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
aster-void authored May 5, 2024
1 parent 70d32a3 commit d768667
Show file tree
Hide file tree
Showing 6 changed files with 831 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
13 changes: 13 additions & 0 deletions docs/3-web-servers/06-form/_samples/node-emoji-form/main.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import express from "express";
import { emojify } from "node-emoji";

const app = express();
app.use(express.static("static"));

app.get("/emojify", (request, response) => {
const text = request.query.text;
const emojifiedText = emojify(text);
response.send(emojifiedText);
});

app.listen(3000);
Loading

0 comments on commit d768667

Please sign in to comment.