_js

command
v0.0.0-...-389821e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2018 License: BSD-3-Clause, BSD-3-Clause Imports: 4 Imported by: 0

README

mvdan-sh

This package is a JavaScript version of a shell package written in Go, available at https://github.com/mvdan/sh.

It is transpiled from Go to JS using GopherJS, available at https://github.com/gopherjs/gopherjs

Here is a simple usage example:

const sh = require('mvdan-sh')
const syntax = sh.syntax

var p = syntax.NewParser()

var src = "echo 'foo'"
var f = p.Parse(src, "src.js")

var stmt = f.StmtList.Stmts[0]
var args = stmt.Cmd.Args
console.log(args[0])

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL