0.3.0 • Published 11 months ago

@rometools/js-api v0.3.0

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

Rome JavaScript Bindings

Official JavaScript bindings for the package rome

Installation

npm i rome
npm i @rometools/js-api

The package rome is marked as peer dependency of this package.

Usage

import {Rome} from "@rometools/js-api"

const rome = await Rome.create({
    backendKind: BackendKind.NODE,
});

const result = await rome.formatContent("function f   () {  }", {
    filePath: "example.js",
});

console.log(result.content)

Philosophy

The project philosophy can be found on our website.

Community

Contribution and development instructions can be found in CONTRIBUTING.

Additional project coordination and real-time discussion happens on our Discord server. Remember that all activity on the Discord server is still moderated and will be strictly enforced under the project's Code of Conduct.