src/entitytypes.js
function(slug) {
  var base64 = slug
    .replace(/-/g, '+')
    .replace(/_/g, '/')
                  + '==';
  return Buffer.from(base64, 'base64');
}
function(slug) {
  var base64 = slug
    .replace(/-/g, '+')
    .replace(/_/g, '/')
                  + '==';
  return Buffer.from(base64, 'base64');
}
function ( slug ) { var base64 = slug . replace ( / - / g , '+' ) . replace ( / _ / g , '/' ) + '==' ; return Buffer . from ( base64 , 'base64' ) ; }
Convert slugid to buffer
Convert slugid to buffer