Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ui5/server

Package Overview
Dependencies
Maintainers
4
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ui5/server

UI5 Tooling - Server

  • 4.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
142K
increased by6.46%
Maintainers
4
Weekly downloads
 
Created

What is @ui5/server?

@ui5/server is a development server for UI5 projects. It provides a local server environment to serve UI5 applications and libraries, enabling developers to test and debug their UI5 projects locally.

What are @ui5/server's main functionalities?

Serve UI5 Applications

This feature allows you to serve a UI5 application locally. The code sample demonstrates how to set up a server on port 8080 to serve resources from the './webapp' directory.

const { serve } = require('@ui5/server');
const server = serve({
  port: 8080,
  resources: {
    path: './webapp'
  }
});
server.start();

Middleware Support

This feature allows you to add custom middleware to the server. The code sample shows how to log the request URL using a custom middleware function.

const { serve } = require('@ui5/server');
const server = serve({
  port: 8080,
  resources: {
    path: './webapp'
  },
  middleware: [
    function customMiddleware(req, res, next) {
      console.log('Request URL:', req.url);
      next();
    }
  ]
});
server.start();

Live Reload

This feature enables live reloading of the application when changes are detected. The code sample demonstrates how to enable live reload by setting the 'liveReload' option to true.

const { serve } = require('@ui5/server');
const server = serve({
  port: 8080,
  resources: {
    path: './webapp'
  },
  liveReload: true
});
server.start();

Other packages similar to @ui5/server

Keywords

FAQs

Package last updated on 11 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc