jshintr: Lint a Javascript file

View source: R/jshintr.R

jshintrR Documentation

Lint a Javascript file

Description

HTML widget which runs 'jshint' on the given JavaScript file.

Usage

jshintr(filepath, width = NULL, height = "auto", elementId = NULL)

Arguments

filepath

path to a JavaScript file

width, height

dimensions (CSS properties)

elementId

a HTML id for the widget (usually useless)

Value

A htmlwidget object.

Note

You can also run this widget as a RStudio addin.

Examples

jsfile <- system.file("jsexample.js", package = "jshintr")
cat(readLines(jsfile), sep = "\n")
jshintr(jsfile)

jshintr documentation built on June 10, 2022, 5:11 p.m.