Luis Figueiredo 8 năm trước cách đây
mục cha
commit
8f9149be8b
1 tập tin đã thay đổi với 9 bổ sung9 xóa
  1. 9 9
      README.md

+ 9 - 9
README.md

@@ -12,16 +12,16 @@ Since as osgi there is no order on module loading, with context.with we do the c
 the goal is to keep module always running with no dependencies in case module depends on other module to perform its main operation, it can always return an error instead of not working at all
 
 ```javascript
-	// using node modules as bundles:
-	var activator = {
-		start(context) {
-			context.setInterval(() => {  // using context.setInterval it will automatically clearInterval on bundle stop
-				context.with(['prettyjson'],(prettyjson) => {
-					prettyjson.render({test: 'test'})			
-				})
-			},3000)
-		}
+// using node modules as bundles:
+var activator = {
+	start(context) {
+		context.setInterval(() => {  // using context.setInterval it will automatically clearInterval on bundle stop
+			context.with(['prettyjson'],(prettyjson) => {
+				prettyjson.render({test: 'test'})			
+			})
+		},3000)
 	}
+}
 
 ```