Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rgl/node-external-process-promises-example
example Node.js application starts an external process and parses its output to resolve two promises
https://github.com/rgl/node-external-process-promises-example
child-process external-process javascript node promise promises typescript
Last synced: 25 days ago
JSON representation
example Node.js application starts an external process and parses its output to resolve two promises
- Host: GitHub
- URL: https://github.com/rgl/node-external-process-promises-example
- Owner: rgl
- Created: 2024-03-30T12:10:02.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-03-31T14:01:37.000Z (9 months ago)
- Last Synced: 2024-10-05T18:22:09.470Z (3 months ago)
- Topics: child-process, external-process, javascript, node, promise, promises, typescript
- Language: TypeScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About
[![Build](https://github.com/rgl/node-external-process-promises-example/actions/workflows/build.yml/badge.svg)](https://github.com/rgl/node-external-process-promises-example/actions/workflows/build.yml)
This example Node.js application starts an external process and parses its output to resolve two promises.
This is implemented by the `startApp` function, which is used as:
```typescript
const { verificationUrlPromise, claimsPromise } = startApp();console.log("verification url:", await verificationUrlPromise);
console.log("claims:", await claimsPromise);
```# Usage
Install [Node.js](https://nodejs.org).
Install the dependencies:
```bash
npm ci
```Run the example:
```bash
npm run example
```