Skip to content

Instantly share code, notes, and snippets.

View CodeByMohana's full-sized avatar

Tunuguntla Mohana Sai CodeByMohana

  • GLA University,Mathura
  • 13:49 (UTC -12:00)
View GitHub Profile
@CodeByMohana
CodeByMohana / script.js
Created March 15, 2024 14:53 — forked from loopDelicious/script.js
Example of writing to a local file
var express = require('express');
var fs = require('fs');
var bodyParser = require('body-parser');
var app = express();
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json()); // Body parser use JSON data
app.post('/launches', function(req, res) {