NodeJS.jl icon indicating copy to clipboard operation
NodeJS.jl copied to clipboard

Support `npx` command

Open terasakisatoshi opened this issue 10 months ago • 0 comments

This PR allows us to call npx command from NodeJS.jl

After this PR is merged, we can use it as follows:

using NodeJS

open("sample.md", "w") do io
	write(io,"# Hello NodeJS\n")
end

mdfile = joinpath(@__DIR__, "sample.md")
# https://github.com/marp-team/marp-cli#try-it-now
# sample.html will be generated
run(`$(npx_cmd()) @marp-team/marp-cli $(mdfile)`)

terasakisatoshi avatar Oct 01 '23 03:10 terasakisatoshi