@bhavjitchauhan/khan-api
TypeScript icon, indicating that this package has built-in type declarations

0.7.1 • Public • Published

NPM version Platform support Try @bhavjit/khan-api on RunKit

A Khan Academy internal API client and wrapper for Node.js and the browser.

Quick links

Install

Node.js

npm i @bhavjit/khan-api
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.

Readme

Keywords

Package Sidebar

Install

npm i @bhavjitchauhan/khan-api

Weekly Downloads

1

Version

0.7.1

License

MIT

Unpacked Size

7.32 MB

Total Files

21

Last publish

Collaborators

  • bhavjitchauhan