src/entitytypes.js
function(bufferView, entryIndex) {
  return bufferView.toString('base64', entryIndex * SLUGID_SIZE, SLUGID_SIZE * (entryIndex + 1))
    .replace(/\+/g, '-')
    .replace(/\//g, '_')
    .replace(/==/g, '');
}
function(bufferView, entryIndex) {
  return bufferView.toString('base64', entryIndex * SLUGID_SIZE, SLUGID_SIZE * (entryIndex + 1))
    .replace(/\+/g, '-')
    .replace(/\//g, '_')
    .replace(/==/g, '');
}
function ( bufferView , entryIndex ) { return bufferView . toString ( 'base64' , entryIndex * SLUGID_SIZE , SLUGID_SIZE * ( entryIndex + 1 ) ) . replace ( / \+ / g , '-' ) . replace ( / \/ / g , '_' ) . replace ( / == / g , '' ) ; }
Convert buffer to slugId where `entryIndex` is the slugId entry index to retrieve
Convert buffer to slugId where entryIndex is the slugId entry index to retrieve