felixhageloh / uebersicht

ˈyːbɐˌzɪçt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run Local Script

LucaDillenburg opened this issue · comments

I was wondering how I could run some scripts locally after a click for example.

I tried the following but the import doesn't work.

const { exec } = require('child_process');
// exec is undefined

Also tried creating a package.json and adding the child_process, but it did not work either.

I want to do something similar to this Issue, but with React instead of CoffeeScript.

Thanks in advance.

You can use run provided by Übersicht.

import { css, request, run, styled } from 'uebersicht'