Luis Figueiredo 8 years ago
parent
commit
8f9149be8b
1 changed files with 9 additions and 9 deletions
  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)
 	}
+}
 
 ```