UNPKG

simple-swf

Version:

Actually simple API layer for AWS SWF

7 lines (5 loc) 195 B
import * as os from 'os' import * as shortId from 'shortid' export function buildIdentity(prefix: string): string { return [prefix, os.hostname(), process.pid, shortId.generate()].join('-') }