UNPKG

firmament-yargs

Version:

Typescript classes for building CLI node applications

10 lines (9 loc) 288 B
import {Crypton} from "../interfaces/crypton"; import {injectable} from "inversify"; const shorthash = require('shorthash'); @injectable() export class CryptonImpl implements Crypton { string2JSIdHash(inputString: string): string { return `A${shorthash.unique(inputString)}`; } }