Current collected state Current
Observed since 20 Oct, 19:59 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Library for 42 school API in js (ts)
42.jsLibrary for 42 school API. In progress...
Author: shocquen
npm install 42.js
import "dotenv/config";
import { Client } from "42.js";
(async () => {
const client = new Client(
<string>process.env.CLIENT_ID,
<string>process.env.CLIENT_SECRET
);
try {
if (process.argv.length != 3) throw "Bad arguments! Give me a login !";
const login = process.argv[2];
const user = await client.users.get(login);
console.log(user?.displayname);
const auth_process = await client.auth_manager.init_auth_process(
"http://localhost:3333/callback",
["public", "projects", "profile"],
{
port: 3333,
callback_function: async (user) => {
if (auth_process)
client.auth_manager.stop_auth_process(auth_process.id);
//const teams = await user.get("/me/teams");
//console.log(teams?.data[0]);
},
}
);
if (auth_process) console.log(auth_process.url);
} catch (err) {
console.error(err);
}
})();
Pull requests are welcome. Don't hesitate to contact me by discord Saky#0001 or directly at school if we met
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.2.6Registry latest | 22 Aug 2023 | 7 | |
| 1.2.5 | 25 Jan 2023 | 7 | |
| 1.2.4 | 17 Dec 2022 | 7 | |
| 1.2.3 | 15 Dec 2022 | 7 | |
| 1.2.2 | 3 Dec 2022 | 7 | |
| 1.2.1 | 19 Oct 2022 | 7 | |
| 1.2.0 | 9 Oct 2022 | 7 | |
| 1.1.12 | 12 Aug 2022 | 5 | |
| 1.1.11 | 11 Aug 2022 | 5 | |
| 1.1.9 | 11 Aug 2022 | 5 | |
| 1.1.8 | 10 Aug 2022 | 5 | |
| 1.1.7 | 9 Aug 2022 | 5 | |
| 1.1.6 | 9 Aug 2022 | 5 | |
| 1.1.5 | 9 Aug 2022 | 5 | |
| 1.1.4 | 9 Aug 2022 | 5 | |
| 1.1.3 | 9 Aug 2022 | 5 | |
| 1.1.2 | 8 Aug 2022 | 5 | |
| 1.1.1 | 8 Aug 2022 | 5 | |
| 1.1.0 | 8 Aug 2022 | 5 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:59 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:7a375e5d22e8283d8f2d11dea1529d43b1f9a8f7509145808a53ad7fba915eb8