npm i eosjs-account-name
yarn add eosjs-account-name
Here is [how eosio account name is computed to uint64] (https://github.com/EOSIO/eos/blob/master/libraries/chain/include/eosio/chain/name.hpp#L21), I think node developer should have this function too :).
main.cpp show how sample values are created.
"eosio",
"eosio.msig",
"eosio.token",
---- 6138663577826885632
---- 6138663587900751872
---- 6138663591592764928
Source https://github.com/EOSIO/eos/blob/master/libraries/chain/name.cpp#L19
Try on run-kit https://npm.runkit.com/eosjs-account-name
const eosjsAccountName = require("eosjs-account-name")
const n = eosjsAccountName.nameToUint64('eosio');
console.log('eosio to uint64: ' + n);
console.log('uint64 to name: ' + eosjsAccountName.uint64ToName(n));