import * as u from 'patchkit-util'
import * as social from 'patchkit-util/social'
u.plural(0)
u.plural(1)
u.plural(2)
u.shortString('123456789')
u.shortString('123456789', 3)
u.bytesHuman(500) => '500b'
u.bytesHuman(1024) => '1kb'
u.bytesHuman(1024*1024) => '1mb'
u.niceDate(Date.now())
u.niceDate(Date.now() - ONEDAY)
u.niceDate(Date.now() - ONEWEEK)
u.niceDate(Date.now(), true)
u.niceDate(Date.now() - ONEDAY, true)
u.niceDate(Date.now() - ONEWEEK, true)
u.getName(users, knownUserId) => 'bob'
u.getName(users, unknownUserId) => '@dkc12e...'
u.getProfilePic(users, userId) => blob link
u.getProfilePicRef(users, userId) => blob ref
u.getProfilePicUrl(users, userId, toUrl) => blob url
social.follows(users, a, b) => bool
social.flags(users, a, b) => bool
social.followeds(users, a) => userIds
social.followedNonfriends(users, a) => userIds
social.followers(users, b) => userIds
social.followerNonfriends(users, a) => userIds
social.followedFollowers(users, a, c, includeA?) => userIds
social.unfollowedFollowers(users, a, c) => userIds
social.followedFlaggers(users, a, c, includeA?) => userIds
social.friends(users, a) => userIds
social.sortByPopularity(users, a, b) => sort integer (-1|0|1)