- 
        Couldn't load subscription status. 
- Fork 0
Basic Usage
Register a service:
// file container.config.ts (js or ts) 
import { Container } from 'packetjs-di';
const container = new Container();
container.add('Service', () => {
  return new SomeService();
});
export default container;Get the service in the application:
import container from 'container.config';
const service = container.get('Service'); // Instantiate the serviceWith typescript:
import container from 'container.config';
import { Service } from "./@types";
const service = container.get<Service>('Service');Generic types are supported. This allows you to use the
get()method with your own types. For more information, see the Typescript section.
We welcome contributions from the community! Whether it's reporting a bug, suggesting a feature, or contributing code, your involvement is key to making Packet.js better. Please check out this section for more details.
If you encounter any issues or bugs while using packetjs, or if you have any feature requests, please feel free to
open an issue in our GitHub repository. You can report issues, track progress, and engage in discussions with the
community via the following link:
If you have any questions or need further assistance, feel free to reach out via the discussion board.