1.0.0-rc2 • Published 9 months ago

falco-js v1.0.0-rc2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Fastly VCL language linter

falco, repackaged for distribution with npm.

JSON output only!

Architecture support

  • darwin-amd64
  • darwin-arm64
  • linux-amd64

Usage

Installation

npm install falco-js

In code

import { lint, lintText } from 'falco-js'

lint('/Absolute/path/to/some.vcl')
  .then((jsonLintResults) => {
    const {
      Infos: suggestionCount,
      Warnings: warningCount,
      Errors: errorCount,
      LintErrors,
      ParseErrors,
      VCL
    } = jsonLintResults
    // ...
  })

lintText('my VCL code')

CLI

falco-js -vv /path/to/file.vcl
falco-js -help

Pipeable (-slurp arg)

cat /path/to/file.vcl | falco-js -slurp
1.0.0-rc2

9 months ago

0.23.2

9 months ago

0.23.1

9 months ago

0.1.2-beta

9 months ago

0.1.1-beta

9 months ago

0.1.0-beta

9 months ago