UNPKG

softkave-js-utils

Version:

JavaScript & Typescript utility functions, types, and classes

7 lines 288 B
import { nanoid } from 'nanoid'; import { kSoftkaveJsUtilsConstants } from '../constants.js'; export function getNewId(opts = {}) { const { nanoidLength = kSoftkaveJsUtilsConstants.resource.nanoidLength } = opts; return nanoid(nanoidLength); } //# sourceMappingURL=getNewId.js.map