UNPKG

andvari

Version:
7 lines (5 loc) 151 B
import crypto from 'crypto' export default (action) => crypto.createHash('sha256') .update(JSON.stringify(action)) .digest('hex')