open-index/open-npm huggingface dataset:
npm package: @scaljeri/fbp-ui
Description: Source: https://medium.com/angular-in-depth/angular-cli-ng-test-with-jest-in-3-minutes-v2-1060ddd7908d
Latest version: 1.0.12

### Jest
Source: https://medium.com/angular-in-depth/angular-cli-ng-test-with-jest-in-3-minutes-v2-1060ddd7908d

# Action possible by a user:
The framework implemented the following guestures: click, double click, long press, drag and drop.

Below is a list of all action provided by the framework and are possible with just the above guestures:

  * drag node (drag&drop)
  * trigger node-fullscreen/full-size state (doubleclick node in normal mode)
  * create a connection (click sockets)
  * delete a connection (click connection)
  * drag socket (drag&drop)
  * configure a socket (longpress)
    - remove connected connections if needed
  * delete socket (drag&drop outside node into the void)
    - remove connected connections
npm package: @scaljeri/ohmymock-sdk
Description: SDK for OhMyMock node server
Author: lucascalje
Latest version: 0.0.25

Setup an Express server to serve files from disk via OhMyMock

### Install

    $> yarn add @scaljeri/ohmymock-sdk
### Run oh-server

    $> node ./node_modules/.bin/oh-server ....

### Custom server
If the `oh-server` does not provide all the flexibility that is needed, a custom server 
can be created using the OhMyMock SDK.

Typescript:

    import express from 'express';
    import * as path from "path";
    import { createServer } from '@scaljeri/ohmymock-sdk';
    import { IOhMySdkResponse, IOhMySdkRequest } from '@scaljeri/ohmymock-sdk';

    const filedir = path.dirname(process.argv[1]).replace(/^\./, '');
    const basePath = __dirname.replace(filedir, '');

    const ohMyServer = createServer({
        port: 8000, 
        listenHandler: () => {
              console.log('Server up and running');
        },
        local: { basePath: path.join(basePath, 'test-site/data') }
    });
    const app = ohMyServer.app;

    ohMyServer.local.add({ // settings
          url: '/users',
          method: 'GET',
          type: 'XHR',
          statusCode: 200,
          path: './users.json',
          handler: (data: IOhMySdkResponse, request: IOhMySdkRequest): void => {
            if (data.response) {
                const resp = JSON.parse(data.response as string);
                resp['1'].name = 'Lucas Calje';
                data.response = JSON.stringify(resp);
            }
          }
    } as any);

    app.get("/", (req: express.Request, res: express.Response) => {
          res.sendFile(path.resolve(path.join(__dirname, 'html/index.html')));
    });

Run the server as follows:

    $> ts-node server.ts

Javascript:

    import * as path from "path";
    import { createServer } from "@scaljeri/ohmymock-sdk";

    const filedir = path.dirname(process.argv[1]).replace(/^\./, "");
    const __dirname = path.resolve(path.dirname(''));

    const basePath = __dirname.replace(filedir, "");

    const ohMyServer = createServer({
      port: 8000,
      listenHandler: () => {
        console.log("Server up and running");
      },
      local: { basePath: path.join(basePath, "test-site/data") },
    });
    const app = ohMyServer.app;

    ohMyServer.local.add({
      // settings
      url: "/users",
      method: "GET",
      type: "XHR",
      statusCode: 200,
      path: "./users.json",
      handler: (data, request) => {
        if (data.response) {
          const resp = JSON.parse(data.response);
          resp["1"].name = "Lucas Calje";
          data.response = JSON.stringify(resp);
        }
      },
    });

    app.get("/", (req, res) => {
      res.sendFile(path.resolve(path.join(__dirname, "html/index.html")));
    });

.

    $> node server.js

It might be required to add `"type":"module"` to package.json