Skip to content

Commit d6be408

Browse files
add sbt dependency
1 parent 04fafda commit d6be408

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

readme.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,23 @@ This is a bridge to these libraries.
99
- Running on jvm, calls [https://github.com/vertical-blank/sql-formatter](https://github.com/vertical-blank/sql-formatter)
1010
- Running on js, calls [https://github.com/zeroturnaround/sql-formatter](https://github.com/zeroturnaround/sql-formatter)
1111

12-
## Examples
12+
## Usage
13+
14+
### Scala (on JVM)
15+
16+
```sbt
17+
libraryDependencies += "com.github.vertical-blank" %% "scala-sql-formatter" % "1.0.0"
18+
```
19+
20+
### Scala.js
21+
22+
```sbt
23+
libraryDependencies += "com.github.vertical-blank" %%% "scala-sql-formatter" % "1.0.0"
24+
25+
scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.CommonJSModule) }
26+
```
27+
28+
### Examples
1329

1430
You can easily use `com.github.vertical_blank.sqlformatter.scala.SqlFormatter` :
1531

0 commit comments

Comments
 (0)