lorem-ipsum
Version:
Generates passages of lorem ipsum text suitable for use as placeholder copy in web pages, graphics, and more. Works in the browser, NodeJS, and React Native.
21 lines (18 loc) • 558 B
text/typescript
import { SUPPORTED_PLATFORMS } from "../../constants/platforms";
import { COPY } from "../constants/commands";
/**
* @param platform The process platform.
* @returns The copy command for the process platform.
*/
const getCopyCommand = (platform: string = ""): string => {
switch (platform.toLowerCase()) {
case SUPPORTED_PLATFORMS.DARWIN:
return COPY.DARWIN;
case SUPPORTED_PLATFORMS.WIN32:
return COPY.WIN32;
case SUPPORTED_PLATFORMS.LINUX:
default:
return COPY.LINUX;
}
};
export default getCopyCommand;