Discover Packages
github.com/myitcv/react
_vendor
src
mvdan.cc
sh
_js
command
Version:
v0.0.0-...-389821e
Opens a new window with list of versions in this module.
Published: Aug 26, 2018
License: BSD-3-Clause, BSD-3-Clause
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
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])
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.