Skip to content

Instantly share code, notes, and snippets.

@ProfAvery
Created November 1, 2022 06:03
Show Gist options
  • Save ProfAvery/5780dafa1736110ee612d7ea1384e19c to your computer and use it in GitHub Desktop.
Save ProfAvery/5780dafa1736110ee612d7ea1384e19c to your computer and use it in GitHub Desktop.
CPSC 349 - Create .remake file
#!/usr/bin/env node
module.paths.push('./_remake')
const nanoidGenerate = require('nanoid/generate')
const dotRemake = require('utils/dot-remake')
dotRemake.writeDotRemake({
port: 3000,
sessionSecret: nanoidGenerate('1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', 30)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment