Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

@tipe/js

Tipe client for JavaScript and Node.js

// esm
import Tipe from '@tipe/js'
const tipe = Tipe({ key: 'api-key', project: 'project-id' })

// cjs
const tipe = require('@tipe/js')({ key: 'api-key', project: 'project-id' })

tipe.document.list().then(results => {
  console.log(results)
})

tipe.document
  .list({ template: 'home', status: tipe.status.draft })
  .then(results => {
    console.log(results)
  })

tipe.document.get({ document: 'document-id' }).then(result => {
  console.log(result)
})
You can’t perform that action at this time.