starKey

tcmts.records.starKey · #p3ugq73h · term · runs anywhere

A star's record key: the library it's for, so one person stars one library once.

export const starKey = (author: string, pkg: string): string =>
  `${author}:${pkg}`.replace(/[^A-Za-z0-9._:~-]/g, "~")

used by