@tknf/node-header-helpers
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@tknf/node-header-helpers

Get Started

Install

yarn add @tknf/node-header-helpers
# or
npm install --save @tknf/node-header-helpers

Use on express

import express from "express";
import { getContentTypeHeader, TextHtml } from "@tknf/node-header-helpers";

const app = express();

app.get("/", async (req, res) => {
  res.set(getContentTypeHeader(), TextHtml());
  return res.status(200).send(`<body>Hello world!</body>`);
});

Readme

Keywords

Package Sidebar

Install

npm i @tknf/node-header-helpers

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

17.1 kB

Total Files

21

Last publish

Collaborators

  • mast1ff