From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gHK5OqUPwmOpeAAAbAwnHQ (envelope-from ) for ; Sat, 14 Jan 2023 03:12:54 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CDSdOqUPwmNIVwAAauVa8A (envelope-from ) for ; Sat, 14 Jan 2023 03:12:53 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9918819D23 for ; Sat, 14 Jan 2023 03:12:53 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGW1J-0006WB-Ud; Fri, 13 Jan 2023 21:11:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pGW1J-0006VV-2K for emacs-orgmode@gnu.org; Fri, 13 Jan 2023 21:11:45 -0500 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pGW1H-00050z-4Q for emacs-orgmode@gnu.org; Fri, 13 Jan 2023 21:11:44 -0500 Received: by mail-ed1-x52e.google.com with SMTP id s5so33538939edc.12 for ; Fri, 13 Jan 2023 18:11:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:reply-to:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=VMpts3LaKbfBqUcK/9aWgcFK2Y62DPY/Mj5QMMUWb90=; b=m+18IAkSYzn+HEfaV7OMwXQCFuFzjpThwTArwzKKU+eKDuThu4XVBylZ8/WdQd9Ae9 c8mp60h8XW/4i6eV8w9JRBD7v4m40ExSLyfXHC62mSTMku11Y6+RNU2foJzcYj2Tg5hV R9BDBWaq6wcyuH/D9pLHweezLeYxIW8MJcyMY7toX6St0/OGQLEOSJc8Htm2PzZpD8Kw VAqIp4OvTx1OnjIgDrOHsQU5MBbX/SyQYgpWUVY3s+zEqcPcQscWm3J+Y4JAMAwWskWV HgcBZEy4GhjkUZzG/WZ8M0eM+Jwu3V2F64Nkldqx+ogVxsBAoMXd4Oa7hWzOWWFATe2K Wdig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:reply-to:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VMpts3LaKbfBqUcK/9aWgcFK2Y62DPY/Mj5QMMUWb90=; b=fStmQ3g6s/5UpwyjiMYqGr/Z5yH5a4t2699g5DZAIgt9klfZfomN6fSLbjcsVHwWxZ gWJUJNAzPLTx0ZG81eN4ZxJLZQmfc2PcbeMeOSJ7uBdh7p7aolDgxJ4MjpF3JUj2E6Fk eHfsPz79q2QAB6vmVvGeIKupOLYY8EnQAmkv7V6l1ezl0lcIyVBuzqN+SYYQH86LmJQd f7S4xe6SFxyi3nYfh+fcNLqs3zrZYF8v0dP8YIEq9ofKP/VLGeugcZ+XjxPc8daFTBTx qVR+4/4Yf5TjxFUQ7pn5oaHLFAsUcgZ7a4idlvimvM4wBIhww5xza8bDo7yNZLQHXmPl NSrA== X-Gm-Message-State: AFqh2krZS4mO6yfgBuTsBw6X9VCXGDUeOr8V0UaHiv/1QLdGMU5tCtZm /poToMSsU9VjxwCddHWpwA2H/YEwb/607b3BcJ0Dgv14Ct/5bQ== X-Google-Smtp-Source: AMrXdXt3OBkZGX+TOfLkyxxUphSEBTInkkNPe0PQsQQlzMFg1E5UGduSzrZmHRvKEotm0Fd8K7h4uVuQ0Ih5DlY0EiU= X-Received: by 2002:a05:6402:228a:b0:49c:77aa:3e0e with SMTP id cw10-20020a056402228a00b0049c77aa3e0emr416270edb.409.1673662300623; Fri, 13 Jan 2023 18:11:40 -0800 (PST) MIME-Version: 1.0 From: George Mauer Date: Fri, 13 Jan 2023 20:11:29 -0600 Message-ID: Subject: Thoughts on this ob language generator To: emacs-orgmode Content-Type: multipart/alternative; boundary="000000000000e718c305f22fde92" Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=gmauer@gmail.com; helo=mail-ed1-x52e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: gmauer@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=m+18IAkS; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673662373; a=rsa-sha256; cv=none; b=Igg2FqFtjWwF/iJcgTtAJpI9Lg2H7VvVhU68cio9K2I5qopvTeyfH+uYmf2wn/s3AZcR+J JT7XLVftBlwYz9A3QnZdz/wjREVfgfVOTG+LREsBT45rllENFbqvUv1ee5SBCBlzxiECml 5x0w8pR2ekrbZibPbs8dAFesAUA1AZ4/qeepB9gkahD68tj+huV6p1jQQvmjKwpYG4n8ks idp3TLtm0ov9iR1qcAhzAgJvDXalzr0twT7byfwwbtzea4/nK9tXYdbo6yGWWmeoSTrICq ACb3uFaGbwc1cea6+CEV63QK0R6JI/UJiQdt5YuGyieJlbjsWrFPbc+IC8rI8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673662373; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=VMpts3LaKbfBqUcK/9aWgcFK2Y62DPY/Mj5QMMUWb90=; b=cLd2VtLi+Z6Qqxsgb9nQyCPbnnuMELwDmG61CJ0hRgcAiLvOLrT6g3XlaBkTEANymGIXg5 DXL0/ieItVgU+skObAE1HaZ1YoZOodZ0MQ1D1YhSNTG1xTEeWeJ/pvfUaE4RUyXJWhpvJh yUWR4UeQmnZ9WD4G9Gpx9baqDE7mwiIBuFJj0H6OsX7/s8K+ZEe4xItxVSkc+gS/E1LHCb i21GtFYRQQTcr8Uwy4PybsTMEJ821Y0HqTeGr4Zk/1pbuAllSG1cm9ZgVY7pSXbvEnZ8Cl HY1D0coLN/VGPGhiuQ1Qh3C7jdgu5BKCz5K+ZlRpBdkwIgfPRY0OcK/Sguuv2A== X-Migadu-Queue-Id: 9918819D23 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=m+18IAkS; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com X-Migadu-Spam-Score: -6.55 X-Spam-Score: -6.55 X-TUID: 2yfy45M7OkGI --000000000000e718c305f22fde92 Content-Type: text/plain; charset="UTF-8" I had a need the other day to execute some typescript in an org document. Now I know that there's an ob-typescript package but that doesn't quite work the way I want and expects typescript to be installed globally (which runs into a variety of versioning issues). There is a better option available with the `npx` program (installed alongside `npm`) which can install a package along with its dependencies into a temporary sandbox and run its binaries. I rewrote the typescript babel plugin to do this and then realized that there was relatively little in it beyond variable and function names that was typescript-specific. The exact same process can be used for anything that has an interpreter up on npm. Coffeescript, mermaidjs, all sorts of things. So I made a macro. I'm interested what people here think: https://github.com/togakangaroo/create-ob-npx --000000000000e718c305f22fde92 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I had a need the other day to execute some typescript in a= n org document. Now I know that there's an ob-typescript package but th= at doesn't quite work the way I want and expects typescript to be insta= lled=C2=A0globally (which runs into a variety of versioning issues).
There is a better option available with the `npx` program (installed along= side `npm`) which can install a package along with its dependencies into a = temporary sandbox and run its binaries.

I rewrote the typescript bab= el plugin to do this and then realized that there was relatively=C2=A0littl= e in it beyond variable and function names that was typescript-specific. Th= e exact same process can be used for anything that has an interpreter up on= npm. Coffeescript, mermaidjs, all sorts of things.

So I made a macr= o. I'm interested what people here think: https://github.com/togakangaroo/create-ob-npx<= /a>
--000000000000e718c305f22fde92--