UNPKG

dockerfile-ast

Version:

Parse a Dockerfile into an array of instructions and comments.

6 lines (5 loc) 228 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const main_1 = require("./main"); let dockerfile = main_1.DockerfileParser.parse("R\\ \n\n"); console.log(dockerfile.getInstructions()[0].getRange());