Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/splits-io. a speedrunning data store and analysis engine splits.io
Something went wrong. Try again.
123456789101112131415var ffi = require('../../')
var libfactorial = ffi.Library('./libfactorial', { 'factorial': [ 'uint64', [ 'int' ] ]})
if (process.argv.length < 3) { console.log('Arguments: ' + process.argv[0] + ' ' + process.argv[1] + ' <max>') process.exit()}
var output = libfactorial.factorial(parseInt(process.argv[2]))
console.log('Your output: ' + output)