UNPKG

@smushytaco/custompatch

Version:

Tool for patching buggy NPM packages instead of forking them

15 lines (13 loc) 406 B
function removeBuildMetadataFromVersion(version) { const plusPos = version.indexOf("+"); if (plusPos === -1) return version; return version.slice(0, Math.max(0, plusPos)); } function getScopelessName(name) { if (!name.startsWith("@")) return name; return name.split("/")[1]; } export { getScopelessName as g, removeBuildMetadataFromVersion as r }; //# sourceMappingURL=utilities.mjs.map