Skip to content
Snippets Groups Projects
Commit 4981677a authored by resynth1943's avatar resynth1943
Browse files

Add randomizer

parent 1673d490
No related branches found
No related tags found
No related merge requests found
Random 'replace' creator
========================
Because resynth1943 doesn't understand flex
\ No newline at end of file
const fs = require('fs');
const path = require('path');
const words = fs.readFileSync(path.resolve(__dirname, './words.txt'), 'utf8').split('\n');
for (const word of words) {
const filePath = path.resolve(__dirname, '../replace/', `./${word}.md`);
fs.writeFileSync(filePath, `\
---
layout: replace
title: ${word}
type: 'Anything, really'
---
# ${word}
${word} is really cool dude
`);
console.log(`wrote ${word}.md`);
}
camara
camarada
camarade
camaraderie
camaraderies
Camarasaurus
Camarata
camarera
Camargo
camarilla
camarillas
Camarillo
camarin
camarine
camaron
Camas
camases
camass
camasses
Camassia
camata
camatina
camauro
camauros
Camaxtli
Camb
Camb.
Cambay
cambaye
Camball
Cambalo
Cambarus
camber
cambered
cambering
camber-keeled
cambers
Camberwell
Cambeva
Camby
cambia
cambial
cambiata
cambibia
cambiform
cambio
cambiogenetic
cambion
Cambyses
cambism
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment