Gathering detailed insights and metrics for @biorate/inversion
Gathering detailed insights and metrics for @biorate/inversion
npm install @biorate/inversion
Typescript
Module System
Node Version
NPM Version
72.8
Supply Chain
86
Quality
89.1
Maintenance
100
Vulnerability
100
License
TypeScript (98.06%)
JavaScript (1.02%)
Less (0.49%)
Pug (0.43%)
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
21,428
Last Day
12
Last Week
37
Last Month
1,297
Last Year
6,727
MIT License
3 Stars
943 Commits
1 Watchers
9 Branches
5 Contributors
Updated on Mar 13, 2025
Minified
Minified + Gzipped
Latest Version
1.104.0
Package Id
@biorate/inversion@1.104.0
Unpacked Size
198.76 kB
Size
44.66 kB
File Count
46
NPM Version
lerna/6.6.2/node@v20.17.0+x64 (linux)
Node Version
20.17.0
Published on
Feb 28, 2025
Cumulative downloads
Total Downloads
Last Day
-33.3%
12
Compared to previous day
Last Week
-96%
37
Compared to previous week
Last Month
371.6%
1,297
Compared to previous month
Last Year
-8.8%
6,727
Compared to previous year
IoC core module build on InversifyJS
1import { Core, init, injectable, inject, container, kill } from '@biorate/inversion'; 2 3@injectable() 4class One { 5 @init() public initialize() { 6 console.log('One module initialized'); 7 } 8 9 @kill() public kill() { 10 console.log('One module killed'); 11 } 12} 13 14@injectable() 15class Two { 16 @init() public initialize() { 17 console.log('Two module initialized'); 18 } 19} 20 21@injectable() 22class Three { 23 @init() public initialize() { 24 console.log('Three module initialized'); 25 } 26} 27 28class Root extends Core() { 29 @inject(One) public one; 30 @inject(Two) public two; 31 @inject(Three) public three; 32} 33 34container.bind(One).toSelf(); 35container.bind(Two).toSelf(); 36container.bind(Three).toSelf(); 37container.bind(Root).toSelf(); 38 39const root = container.get(Root); 40 41root.$run().then(() => { 42 console.log(root.one instanceof One); // true 43 console.log(root.two instanceof Two); // true 44 console.log(root.three instanceof Three); // true 45});
See the CHANGELOG
Copyright (c) 2021-present Leonid Levkin (llevkin)
No vulnerabilities found.
No security vulnerabilities found.