Skip to content

Instantly share code, notes, and snippets.

@ganesh-bruno
ganesh-bruno / pdf2json.js
Last active October 27, 2025 11:20
pdf2json example using Node VM
const https = require('node:https');
const PDFParser = require('pdf2json');
const url = require('node:url');
const PDF_URL = 'https://ontheline.trincoll.edu/images/bookdown/sample-local-pdf.pdf';
const parsedUrl = url.parse(PDF_URL);
const options = {
hostname: parsedUrl.hostname,
port: parsedUrl.port || 443,
const axios = require("axios");
async function getToken() {
try {
const response = await axios.post("https://reqres.in/api/login", {
email: "eve.holt@reqres.in",
password: "cityslicka"
}, {
headers: { "Content-Type": "application/json" }
});
@ganesh-bruno
ganesh-bruno / Action to setup Collection Monorepo.yml
Created December 17, 2024 11:23
Action to setup Collection Monorepo
name: Sync API Docs
on:
push:
branches:
- main # Trigger the action when changes are pushed to the main branch.
jobs:
sync-api-docs:
name: Sync API Documentation for Project 1 and Project 2