Skip to content

Instantly share code, notes, and snippets.

@AllGistsEqual
Created February 15, 2021 12:40
Show Gist options
  • Save AllGistsEqual/cc3f5bf2e3a6a81829639bce68c8f380 to your computer and use it in GitHub Desktop.
Save AllGistsEqual/cc3f5bf2e3a6a81829639bce68c8f380 to your computer and use it in GitHub Desktop.
// File: src/index.js
const os = require('os') // nodeJS
const path = require('path') // nodeJS
const fs = require('fs') // nodeJS
const opn = require('opn')
const mkdirp = require('mkdirp')
const jsonfile = require('jsonfile')
const sanitise = str => str.replace(/[^a-z0-9_-]/gi, '')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment