This file contains hidden or 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 { execSync } = require('child_process'); | |
| function run(func) { | |
| console.log(execSync(func).toString()) | |
| } | |
| module.exports = { | |
| name: prompt('package name', basename || package.name), | |
| version: prompt('version', '0.0.0'), | |
| decription: prompt('description', ''), |
This file contains hidden or 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
| function assert(one, two) { | |
| if (one !== two) { | |
| throw new Error(`${one} not equal to ${two}!!`); | |
| } else { | |
| console.info(`Success! ${one} is equal to ${two}!`); | |
| } | |
| } | |
| function nextServerNumber(arrayOfInts) { | |
| let lowestServerNumber = 1; |