How to use the login function from commander
Find comprehensive JavaScript commander.login code examples handpicked from public code repositorys.
GitHub: Tsuk1ko/pxder
![Tsuk1ko profile picture](/Tsuk1ko.png?size=40)
167 168 169 170 171 172 173 174 175 176
console.log('\nPixiv Login\n'.cyan); try { Pixiv.applyProxyConfig(config); if (typeof program.login === 'string') { // token 登录 const token = program.login.trim(); console.log('Login with refresh token', token.yellow); await Pixiv.loginByToken(token); } else { // OAuth 登录
commander.Option is the most popular function in commander (1786 examples)