0.0.3 • Published 5 years ago

powerquery-fmt v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

powerquery-format

A code formatter for the Power Query/M language, written in TypeScript. Designed to be consumed by other projects.

How to use

A minimal example can be found in example.ts.

Things to note

Parser

The AST is built using the powerquery-parser project.

Error Handling

The project tries avoiding using try/catch blocks. Instead it prefers to use the Result type to carry exceptions between boundaries, and Option for explicit nullability. This means library users should assume public functions won't throw an uncaught exception.

Dependency Justication

How to build

  • Install NodeJS
  • npm install
  • npm run-script build

How to run tests

  • Install NodeJS
  • npm install
  • npm test

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago