Luis Figueiredo 8 年之前
父節點
當前提交
8f9149be8b
共有 1 個文件被更改,包括 9 次插入9 次删除
  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)
 	}
+}
 
 ```