0.6.11 • Published 2 years ago
@arsonar/client v0.6.11
@arsonar/client
A JavaScript client for Sonar for browsers and Node.js.
The client talks to @arsonar/server
over HTTP.
Usage
npm install @arsonar/client
const { Workspace } = require('@arsonar/client')
or
import { Workspace } from '@arsonar/client'
Example
const { Workspace } = require('@arsonar/client')
const url = 'http://localhost:9191/api/v1/default'
const workspace = new Workspace({ url })
const collection = await workspace.createCollection('foobar')
await collection.put({
type: 'sonar/entity',
value: { label: 'hello world' }
})
const records = await collection.query('records', { type: 'sonar/entity' })
console.log(records)
API
See api.md for the API docs.
0.6.10
2 years ago
0.6.11
2 years ago
0.6.7
2 years ago
0.6.6
2 years ago
0.6.9
2 years ago
0.6.8
2 years ago
0.6.0-alpha.6
2 years ago
0.6.3
2 years ago
0.6.2
2 years ago
0.6.5
2 years ago
0.6.4
2 years ago
0.6.0-beta.1
2 years ago
0.6.0
2 years ago
0.6.0-alpha.5
2 years ago
0.6.0-alpha.3
2 years ago
0.6.0-alpha.4
2 years ago
0.6.0-alpha.1
2 years ago
0.6.0-alpha.2
2 years ago
0.5.0
3 years ago
0.4.0
3 years ago