@hellocoop/quickstart 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # Hellō Quickstart
2
+
3
+ ## CLI
4
+
5
+ You can run the following command to create or retrieve the `client_id` for a Hellō Application.
6
+
7
+ `npx @hellocoop/quickstart@latest`
8
+
9
+ This will open up a browser window, where you will need to login with Hellō, and then choose to create a new app, or return the `client_id`.
10
+
11
+ ## Import Package
12
+
13
+ To install in another package
14
+
15
+ `npm i @hellocoop/quickstart`
16
+
17
+ or
18
+
19
+ `yarn i @hellocoop/quickstart`
20
+
21
+ You can then use call Quickstart fom another configuration script
22
+
23
+ ```
24
+ import quickstart from './quickstart.js';
25
+
26
+ ...
27
+
28
+ const client_id = await quickstart()
29
+
30
+ ```
31
+
32
+ ## Options
33
+
34
+ TBD
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hellocoop/quickstart",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Provides a CLI to start the Hello Quickstart web app and return a client_id",
5
5
  "module": "quickstart.js",
6
6
  "bin":{
package/quickstart.js CHANGED
@@ -26,7 +26,6 @@ const quickstart = async function (params) {
26
26
  res.end(clientHTML, () => {
27
27
  server.closeAllConnections()
28
28
  server.close(() => {
29
- console.log(clientHTML)
30
29
  resolve(u.query.client_id)
31
30
  })
32
31
  })