UNPKG

lycabinet

Version:

A simple small JSON Object storage helper with good performance.

16 lines (11 loc) 319 B
/** * Add alias to some methods. * To custom the using habit for general users. */ export function initAlias(Lycabinet){ const Proto = Lycabinet.prototype; Proto.delete = Proto.remove; Proto.read = Proto.get; Proto.storage = Proto.getCabinet; Proto.isConsistent = Proto.isIdentical; }