@bhavjit/khan-api
v0.7.2
Published
A Khan Academy API client and wrapper
Downloads
52
Readme
Khan API
A Khan Academy internal API client and wrapper for Node.js and the browser.
Install
Node.js
NPM
npm i @bhavjit/khan-api
Yarn
yarn add @bhavjit/khan-api
Usage
Node.js
JavaScript modules
import { Client } from '@bhavjit/khan-api'
const client = new Client()
CommonJS
const { Client } = require('@bhavjit/khan-api')
const client = new Client()
Web
JavaScript modules
<script type="module">
import { Client } from 'https://esm.run/@bhavjit/khan-api'
const client = new Client()
</script>
Script tag
<script src="https://cdn.jsdelivr.net/npm/@bhavjit/khan-api"></script>
<script>
const client = new KhanAPI.Client()
</script>
See the examples directory for more.