File tree Expand file tree Collapse file tree 3 files changed +28
-2
lines changed
Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " classcharts-api" ,
3- "version" : " 0.0.1 " ,
3+ "version" : " 0.0.2 " ,
44 "description" : " " ,
55 "repository" : {
66 "url" : " https://github.com/jamesatjaminit/classcharts-api"
77 },
88 "main" : " ./index.js" ,
99 "scripts" : {
10- "prepublishOnly " : " pnpm tsc && node dist/release.js" ,
10+ "buildReady " : " pnpm tsc && node dist/release.js" ,
1111 "generateDocs" : " pnpm typedoc --entryPointStrategy expand ./src"
1212 },
1313 "author" : " " ,
Original file line number Diff line number Diff line change 11# Classcharts API
22
33A very WIP client for the classcharts API
4+
5+ [ Documentation] ( https://jamesatjaminit.github.io/classcharts-api/index.html )
6+
7+ # Examples
8+
9+ ``` typescript
10+ import { ClasschartsClient } from ' classcharts-api'
11+ async function main() {
12+ const client = new ClasschartsClient (' classchartsCode' , ' 01/1/2000' )
13+ await client .init ()
14+ console .log (
15+ await client .getBehaviour ({
16+ displayDate: ' due_date' ,
17+ fromDate: ' 20/01/2000' ,
18+ toDate: ' 01/02/2000' ,
19+ })
20+ )
21+ console .log (await client .getActivity (null ))
22+ console .log (await client .getStudentInfo ())
23+ console .log (await client .getActivity (null ))
24+ console .log (await client .getActivity (null ))
25+ }
26+
27+ main ()
28+ ```
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ function main() {
2323 Buffer . from ( sourceObj . version , 'utf-8' )
2424 )
2525 fs . copyFileSync ( __dirname + '/../.npmignore' , __dirname + '/.npmignore' )
26+ fs . copyFileSync ( __dirname + '/../README.MD' , __dirname + '/README.MD' )
2627}
2728
2829main ( )
You can’t perform that action at this time.
0 commit comments