media-breakpoint-only from Bootstrap 4.
See also Responsive Breakpoints.
Works only with Bootstrap 4 and higher.
$ npm i bootstrap-breakpoint
// bootstrapBreakpoint(mode, breakpoint);// mode = up, down, between or only// breakpoint = xs, sm, md, lg or xlif// code if window width is greater equal than mdif// code if window width is lower than lgif// code if window width is greater equal sm and lower than lgif// code if window width is in range of xs// adding further breakpointsBootstrapBreakpointbreakpoints;BootstrapBreakpoint;// orBootstrapBreakpointbreakpoints = "xs" "sm" "md" "lg" "xl" "xxl";BootstrapBreakpoint;