UNPKG

@stdlib/error

Version:
27 lines (20 loc) 527 B
{{alias}}( pkg ) Returns the error code identifier prefix associated with a specified package name. The function supports both internal and standalone package names. Parameters ---------- pkg: string Package name. Returns ------- out: string|null Error code identifier prefix. Examples -------- > var v = {{alias}}( '@stdlib/math/base/special/sin' ) <string> > v = {{alias}}( '@stdlib/math-base-special-sin' ) <string> See Also --------