CLI usage

CLI usage

How to use in browsers

Option 1: Try it out here

  • On this page, open the browser console (for Chrome, press Ctrl+Shift+J (Windows/Linux) or Cmd+Opt+J (Mac)).
  • Run console.log(lawtext.run.help) in the browser console.

Option 2: Try in other places

  • Copy the URL of lawtext.js.
  • Open the browser console (for Chrome, press Ctrl+Shift+J (Windows/Linux) or Cmd+Opt+J (Mac)).
  • Run await import("...") (replace ... with the copied URL of lawtext.js) in the browser console.
  • Run console.log(lawtext.run.help) in the browser console.

How to use in Node.js

Option 1: Run the prebuilt bundle

  • Download the prebuilt bundle from here: lawtext.js
  • Run node lawtext.js --help

Option 2: Run using npx globally

  • Run npx lawtext --help

Option 3: Run as a package

  • Run the following command in your working directory (or just an empty directory).
    npm install lawtext
  • Run npx lawtext --help

Option 4: Run independently