habitify-api
v0.0.4
Published
API Wrapper for Habitify
Downloads
1
Readme
js-habitify-api
Unofficial Habitify API client for JavaScript. API Docs: https://docs.habitify.me/
Usage
Installation
yarn
yarn add habitify-api
npm
npm install habitify-api
pnpm
pnpm install habitify-api
Example
import { Client } from 'habitify-api'
// const client = Client.create('...') // You can initialize client with token
const client = Client.getClientFromEnv() // Or get client from environment variables HABITIFY_API_TOKEN
// https://docs.habitify.me/date-format
const data = await client.fetchJournal('2023-07-25T00:00:00+09:00') // fetch journal of 2023-07-25
console.log(data)
Build
pnpm build
Run with development mode (watch mode)
pnpm dev
Test
pnpm test
License
MIT