Skip to content

Instantly share code, notes, and snippets.

View catsagainst's full-sized avatar

catsagainst catsagainst

  • 08:12 (UTC -12:00)
View GitHub Profile
@catsagainst
catsagainst / script.js
Created September 5, 2024 09:11 — 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) {