@tdurieux/dinghy
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Dinghy

CI

A library to parse and modify Dockerfiles

Install

npm install @tdurieux/dinghy

Usage

import * as dindhy from "@tdurieux/dinghy";

const ast = await dindhy.dockerfileParser.parseDocker(/* file */);
ast.traverse((node) => {
  if (ast instanceof dindhy.nodeType.DockerOpsValueNode) {
    console.log(ast.value);
  }
});

/@tdurieux/dinghy/

    Package Sidebar

    Install

    npm i @tdurieux/dinghy

    Weekly Downloads

    34

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    674 kB

    Total Files

    71

    Last publish

    Collaborators

    • tdurieux