plugin-naming.d.ts 755 B

1234567891011121314151617181920
  1. /**
  2. * Brings package name to correct format based on prefix
  3. * @param {string} name The name of the package.
  4. * @returns {string} Normalized name of the package
  5. * @private
  6. */
  7. export declare function normalizePackageName(name: string): string;
  8. /**
  9. * Removes the prefix from a fullname.
  10. * @param {string} fullname The term which may have the prefix.
  11. * @returns {string} The term without prefix.
  12. */
  13. export declare function getShorthandName(fullname: string): string;
  14. /**
  15. * Gets the scope (namespace) of a term.
  16. * @param {string} term The term which may have the namespace.
  17. * @returns {string} The namepace of the term if it has one.
  18. */
  19. export declare function getNamespaceFromTerm(term: string): string;
  20. //# sourceMappingURL=plugin-naming.d.ts.map