This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs') | |
// Grabbed from here: https://gist.github.com/Ugrend/09890dbc7a049651d470d1f8b6b73e1a | |
function randomMedicareNumber(): string { | |
let sum = Math.floor(Math.random() * 5) + 2 | |
const weights = [1, 3, 7, 9, 1, 3, 7, 9] | |
const num = [sum] | |
for (let i = 0; i < 7; i++) { | |
const n = Math.floor(Math.random() * 10) | |
sum += n * weights[i + 1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from 'fs' | |
import path from 'path' | |
// Requires folder structure | |
// config | |
// -> netlify | |
// Run with NETLIFY_CONFIG_FILE=netlify.develop.toml node scripts/copy-netlify-config-to-root.mjs | |
// ^^ You get the picture |
OlderNewer