# gnodejs

> NodeJS Manager Library

Latest version **3.1.8** (published 2025-12-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install gnodejs
pnpm add gnodejs
yarn add gnodejs
bun add gnodejs
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 3.1.8 |
| Published | 2025-12-27 |
| First published | 2021-01-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 16 |
| Unpacked size | 20.2 KB |
| Known vulnerabilities | 0 (+24 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Gnome Group, SRL |
| Maintainers | encke |

## Links

- npm: https://www.npmjs.com/package/gnodejs
- Repository: https://github.com/GnomeGroup/gnodejs
- Homepage: https://github.com/GnomeGroup/gnodejs#readme
- Issues: https://github.com/GnomeGroup/gnodejs/issues
- npm.io page: https://npm.io/package/gnodejs

## Dependencies (16)

- [fs](https://npm.io/package/fs.md) ^0.0.1-security
- [cors](https://npm.io/package/cors.md) ^2.8.5
- [http](https://npm.io/package/http.md) ^0.0.1-security
- [ssh2](https://npm.io/package/ssh2.md) ^1.15.0
- [axios](https://npm.io/package/axios.md) ^1.6.8
- [https](https://npm.io/package/https.md) ^1.0.0
- [eslint](https://npm.io/package/eslint.md) ^8.57.0
- [express](https://npm.io/package/express.md) ^4.18.3
- [prettier](https://npm.io/package/prettier.md) ^3.2.5
- [nodemailer](https://npm.io/package/nodemailer.md) ^6.9.12
- [strong-soap](https://npm.io/package/strong-soap.md) ^4.0.3
- [child_process](https://npm.io/package/child_process.md) ^1.0.2
- [express-bouncer](https://npm.io/package/express-bouncer.md) ^0.2.0
- [prettier-eslint](https://npm.io/package/prettier-eslint.md) ^16.3.0
- [express-fileupload](https://npm.io/package/express-fileupload.md) ^1.5.0
- [universal-cookie-express](https://npm.io/package/universal-cookie-express.md) ^7.1.0

## Recent versions

- 3.1.8 (latest) — 2025-12-27
- 3.1.7 — 2025-06-24
- 3.1.6 — 2025-03-05
- 3.1.4 — 2024-05-13
- 3.1.3 — 2024-03-19
- 3.1.2 — 2024-03-17
- 3.1.1 — 2024-03-16
- 3.1.0 — 2024-03-16
- 3.0.4 — 2023-11-25
- 3.0.3 — 2023-11-25
- 3.0.2 — 2023-11-25
- 3.0.1 — 2023-11-25
- 2.1.2 — 2022-08-10
- 2.0.10 — 2021-06-01
- 2.0.9 — 2021-06-01
- … 13 more at https://npm.io/package/gnodejs/versions

## README

# gnodejs

NodeJS Manager Library

## How to install the library

```bash
npm i gnodejs --save
```

## How to include the library

```node
const APP = require('gnodejs')
```

## How to use express

The express server can also be the SSL server (like a local web server), provide the location based on the domain name from let's encrypt

```node
APP.xpr.load()
APP.xpr.load('mydomain.com')
APP.xpr.add(
  'get',
  '/user/:id',
  (res, ip, requestedDATA, cookieOrSession, filesPosted, hostname) => {
    //the res item is the same as always
    //ip is the Source IP of the request
    //requestedDATA is the paramaters, already formatted, in the request, in this example you can use requestedDATA.id the data is auto formatted to an object regardless or source
    //cookieOrSession is the object of the cookie or override session function
    //filesPosted is the object of the files posted from the request
    //hostname is the name of the host in the request. this is useful when using virtual hosts in the same node core
    if (parseInt(requestedDATA.id) > 0) {
      res.json({ user: 'valid' })
    } else {
      res.status(400).json({ user: 'invalid' })
    }
  },
)
```

The express server can also process user authentication

```node
APP.xpr.load('mydomain.com')
APP.xpr.add(
  'get',
  '/user/:id',
  (res, ip, requestedDATA, cookieOrSession, filesPosted, hostname) => {
    //the res item is the same as always
    //ip is the Source IP of the request
    //requestedDATA is the paramaters, already formatted, in the request, in this example you can use requestedDATA.id the data is auto formatted to an object regardless or source
    //cookieOrSession is the object of the cookie or override session function
    //filesPosted is the object of the files posted from the request
    //hostname is the name of the host in the request. this is useful when using virtual hosts in the same node core
    if (parseInt(requestedDATA.id) > 0) {
      res.json({ user: 'valid' })
    } else {
      res.status(400).json({ user: 'invalid' })
    }
  },
  (headers) => headers.auth == 'isvalid',
)
```

# Happy Coding!

---
_Source: https://npm.io/package/gnodejs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
