Installations
npm install @biorate/inversion
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
20.17.0
NPM Version
lerna/6.6.2/node@v20.17.0+x64 (linux)
Score
72.8
Supply Chain
86
Quality
89.1
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (98.06%)
JavaScript (1.02%)
Less (0.49%)
Pug (0.43%)
validate.email 🚀
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Developer
biorate
Download Statistics
Total Downloads
21,428
Last Day
12
Last Week
37
Last Month
1,297
Last Year
6,727
GitHub Statistics
MIT License
3 Stars
943 Commits
1 Watchers
9 Branches
5 Contributors
Updated on Mar 13, 2025
Bundle Size
76.39 kB
Minified
17.77 kB
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
21,428
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Inversion
IoC core module build on InversifyJS
Example:
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});
Learn
- Documentation can be found here - docs.
Release History
See the CHANGELOG
License
Copyright (c) 2021-present Leonid Levkin (llevkin)

No vulnerabilities found.

No security vulnerabilities found.