riennevaplus / wikifolio-example Goto Github PK
View Code? Open in Web Editor NEWExample for the wikifolio API (https://github.com/RienNeVaPlus/wikifolio)
License: MIT License
Example for the wikifolio API (https://github.com/RienNeVaPlus/wikifolio)
License: MIT License
Hello,
it's me again with another basic question : )
Currently, running
yarn start
runs a process of index.ts, which is prompting for email and password input from the console.
Would it be possible to pass these parameters (and possibly others, like wikifolio ID) via flags to the call, rather than being prompted to enter them? Something along the lines of
yarn start --email [email protected] --password verySecretPassword
would be convenient to have (with an optional keyboard prompt if no flags are passed).
However, since I don't know enough of yarn and typescript I'm not certain if and how this would be feasible.
Cheers
Good day to you, Sir!
When I try to run the example, I get an error. Please see the console log below:
PS C:\git\wikifolio-example> yarn start --trace-warnings
yarn run v1.22.5
$ tsc && node ./dist --trace-warnings
Your credentials will not be stored.
√ Wikifolio email ... [email protected]
√ Wikifolio password ... ***********
(node:8484) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '1' of null
at Wikifolio.<anonymous> (C:\git\wikifolio-example\node_modules\wikifolio\dist\models\Wikifolio.js:292:107)
at step (C:\git\wikifolio-example\node_modules\wikifolio\dist\models\Wikifolio.js:44:23)
at Object.next (C:\git\wikifolio-example\node_modules\wikifolio\dist\models\Wikifolio.js:25:53)
at fulfilled (C:\git\wikifolio-example\node_modules\wikifolio\dist\models\Wikifolio.js:16:58)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:8484) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:8484) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Done in 24.13s.
I am not a JavaScript or TypeScript developer, so I have very limited debugging capabilities.
Any help on this issue is very much appreciated.
Best Regards!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.