npm i unix-timestamp code example Example: node get unix timestamp Math.floor(new Date() / 1000) // in seconds