UNPKG

luhn-generator

Version:

A generator of numbers that passes the validation of Luhn algorithm or Luhn formula, also known as the 'modulus 10' or 'mod 10' algorithm

14 lines (11 loc) 347 B
const { spawn } = require('child_process'); const rebuildIfDarwin = () => { if (process.platform !== 'darwin') { console.log(); console.log(`Skipping 'fsevents' build as platform ${process.platform} is not supported`); process.exit(0); } else { spawn('node-gyp', ['rebuild'], { stdio: 'inherit' }); } }; rebuildIfDarwin();