fix(documentation): update readme with comprehensive API documentation and hints file

- Updated readme.md with complete API reference and usage examples
- Added readme.hints.md with architecture and implementation details
- Improved documentation structure and clarity
- Version bump to 5.0.13
This commit is contained in:
Juergen Kunz
2025-07-28 12:00:51 +00:00
parent b4897d238f
commit ce338e27ea
7 changed files with 7813 additions and 4445 deletions

View File

@@ -32,7 +32,7 @@ export class Smartenv {
public async getSafeNodeModule<T = any>(moduleNameArg: string, runAfterFunc?: (moduleArg: T) => Promise<any>): Promise<T> {
if (!this.isNode) {
console.error(`You tried to load a node module in a wrong context: ${moduleNameArg}`);
console.error(`You tried to load a node module in a wrong context: ${moduleNameArg}. This does not throw.`);
return;
}
// tslint:disable-next-line: function-constructor