The Battery Holder 3xAA w/ Cover & Switch - JST Connector features a removable, sliding cover, as well as an ON/OFF, switch that can be used to control power to your project. The 6 inch (~150 mm) cable has been terminated with a JST connector.
Note: Please keep in mind that JST connectors are not suited for constant and repeated removal and insertions and may wear out over time.