0.1.1 • Published 3 years ago
@inferlink/comments v0.1.1
Inferlink Comments
This package is meant to be used with the Inferlink Comments API, but a custom API can be supplied if it uses the same contract
Via NPM
npm install @inferlink/comments
// yourfile.js
import Comments from "@inferlink/comments"
CDN
<link href="https://unpkg.com/@inferlink/comments@0.1.1/build/index.css" rel="stylesheet"/>
<script src="https://unpkg.com/@inferlink/comments@0.1.1/build/index.js"></script>
Usage (all fields required)
Comments({
target: document.getElementById("comments-root"),
baseURL: "https://yourapilocation.com",
postID: 1,
token: "API_TOKEN",
username: "USERNAME"
})