update of packages
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
;;; ob-js.el --- Babel Functions for Javascript -*- lexical-binding: t; -*-
|
||||
|
||||
;; Copyright (C) 2010-2022 Free Software Foundation, Inc.
|
||||
;; Copyright (C) 2010-2023 Free Software Foundation, Inc.
|
||||
|
||||
;; Author: Eric Schulte
|
||||
;; Keywords: literate programming, reproducible research, js
|
||||
@@ -69,7 +69,10 @@
|
||||
:safe #'stringp)
|
||||
|
||||
(defvar org-babel-js-function-wrapper
|
||||
"require('process').stdout.write(require('util').inspect(function(){%s}()));"
|
||||
;; Note that newline after %s - it makes sure that closing
|
||||
;; parenthesis are not shadowed if the last line of the body is a
|
||||
;; line comment.
|
||||
"require('process').stdout.write(require('util').inspect(function(){%s\n}()));"
|
||||
"Javascript code to print value of body.")
|
||||
|
||||
(defun org-babel-execute:js (body params)
|
||||
|
||||
Reference in New Issue
Block a user