@@ -9,18 +9,18 @@ import {
99} from '../src/index' ;
1010
1111async function demonstrateAdvancedUtils ( ) {
12- console . log ( '🚀 Advanced Dev Utils - Demo\n' ) ;
12+ console . log ( 'Advanced Dev Utils - Demo\n' ) ;
1313
1414 // 1. Smart Caching Demo
15- console . log ( '📦 Smart Caching:' ) ;
15+ console . log ( 'Smart Caching:' ) ;
1616 const cache = new SmartCache ( { maxSize : 100 , ttl : 60000 } ) ;
1717
1818 await cache . set ( 'user:123' , { name : 'John Doe' , age : 30 } ) ;
1919 const user = await cache . get ( 'user:123' ) ;
2020 console . log ( 'Cached user:' , user ) ;
2121
2222 // 2. String Utils Demo
23- console . log ( '\n🔤 String Utils:' ) ;
23+ console . log ( '\nString Utils:' ) ;
2424 const text1 = 'Hello World' ;
2525 const text2 = 'Hello Universe' ;
2626 const similarity = StringUtils . similarity ( text1 , text2 ) ;
@@ -30,7 +30,7 @@ async function demonstrateAdvancedUtils() {
3030 console . log ( `Camel case: ${ camelCase } ` ) ;
3131
3232 // 3. Crypto Utils Demo
33- console . log ( '\n🔐 Crypto Utils:' ) ;
33+ console . log ( '\nCrypto Utils:' ) ;
3434 const randomString = CryptoUtils . randomString ( 16 ) ;
3535 console . log ( `Random string: ${ randomString } ` ) ;
3636
@@ -41,7 +41,7 @@ async function demonstrateAdvancedUtils() {
4141 console . log ( `SHA-256 hash: ${ hash . substring ( 0 , 20 ) } ...` ) ;
4242
4343 // 4. Math Utils Demo
44- console . log ( '\n🧮 Math Utils:' ) ;
44+ console . log ( '\nMath Utils:' ) ;
4545 const numbers = [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 ] ;
4646 const mean = MathUtils . average ( numbers ) ;
4747 const median = MathUtils . median ( numbers ) ;
@@ -53,7 +53,7 @@ async function demonstrateAdvancedUtils() {
5353 } ) ;
5454
5555 // 5. Array Utils Demo
56- console . log ( '\n📊 Array Utils:' ) ;
56+ console . log ( '\nArray Utils:' ) ;
5757 const data = [ 1 , 2 , 3 , 4 , 5 ] ;
5858 const chunks = ArrayUtils . chunk ( data , 2 ) ;
5959 console . log ( `Chunked array:` , chunks ) ;
@@ -62,7 +62,7 @@ async function demonstrateAdvancedUtils() {
6262 console . log ( `Unique values:` , unique ) ;
6363
6464 // 6. Async Queue Demo
65- console . log ( '\n⚡ Async Queue:' ) ;
65+ console . log ( '\nAsync Queue:' ) ;
6666 const queue = new AsyncQueue ( { concurrency : 2 } ) ;
6767
6868 const tasks = [
@@ -80,7 +80,7 @@ async function demonstrateAdvancedUtils() {
8080 console . log ( 'All tasks completed!' ) ;
8181
8282 // 7. Performance Monitor Demo
83- console . log ( '\n📊 Performance Monitor:' ) ;
83+ console . log ( '\nPerformance Monitor:' ) ;
8484 const monitor = new PerformanceMonitor ( ) ;
8585
8686 // Monitor a function
@@ -99,7 +99,7 @@ async function demonstrateAdvancedUtils() {
9999 const analytics = monitor . getAnalytics ( ) ;
100100 console . log ( 'Average execution time:' , analytics . summary . averageExecutionTime . toFixed ( 2 ) + 'ms' ) ;
101101
102- console . log ( '\n✅ Demo completed successfully!' ) ;
102+ console . log ( '\nDemo completed successfully!' ) ;
103103}
104104
105105// Run the demo
0 commit comments