diff --git a/index.html b/index.html index 7cb06a166..07c0c1e39 100644 --- a/index.html +++ b/index.html @@ -211,13 +211,13 @@

Direct API

You can also run execute LIPS programaticaly (in Node.js/Webpack).


-var lips = require('@jcubic/lips');
+var { exec } = require('@jcubic/lips');
 // or
-import lips from '@jcubic/lips';
+import { exec } from '@jcubic/lips';
     

Then use it like this:


-lips.exec('(let ((a 10) (b 20)) (* a b))').then(result => {
+exec('(let ((a 10) (b 20)) (* a b))').then(result => {
     results.forEach(function(result) {
         if (typeof result !== 'undefined') {
             console.log(result.toString());
diff --git a/index.tmpl b/index.tmpl
index 6a40d42ae..fa43c8856 100644
--- a/index.tmpl
+++ b/index.tmpl
@@ -122,13 +122,13 @@ chmod a+x foo.scm
     

Direct API

You can also run execute LIPS programaticaly (in Node.js/Webpack).


-var lips = require('@jcubic/lips');
+var { exec } = require('@jcubic/lips');
 // or
-import lips from '@jcubic/lips';
+import { exec } from '@jcubic/lips';
     

Then use it like this:


-lips.exec('(let ((a 10) (b 20)) (* a b))').then(result => {
+exec('(let ((a 10) (b 20)) (* a b))').then(result => {
     results.forEach(function(result) {
         if (typeof result !== 'undefined') {
             console.log(result.toString());