Skip to content

Instantly share code, notes, and snippets.

View educastellano's full-sized avatar

Eduard Castellano educastellano

View GitHub Profile
@educastellano
educastellano / js-to-json.js
Created January 10, 2024 19:17
JS to JSON
#!/usr/bin/env node
import fs from 'fs'
import path from 'path'
const args = process.argv.slice(2)
const input = args[0]
const objectPath = args[1]
if (!input) {
console.log('> Missing folder')
@educastellano
educastellano / index.js
Created February 7, 2023 16:06
Script to log branches merged into main with squashed commits
/*
* Utility to log branches merged into main
*
* It finds branches from commit messages because of squashed commits (and so 'git branch --merged' doesn't work),
* so results might not be accurate, use it at your own risk.
*/
import { exec as execCb } from 'child_process'
function exec (cmd) {
return new Promise((resolve, reject) => {

Keybase proof

I hereby claim:

  • I am educastellano on github.
  • I am educastellano (https://keybase.io/educastellano) on keybase.
  • I have a public key ASDa0NQQ0JwI5ntENt_FvwpvHvkkNV6oZLtfSz5JOsENyAo

To claim this, I am signing this object: