open-index/open-npm huggingface dataset:
npm package: @tajawalae/web-server-middleware
Description: Web server middleware
Latest version: 1.9.7

# web-server-middleware

Base set of functions to be user to generate the necessary config for a web-app-server. Whether you're using express, koa, restify or plain node-http server, these utils will get you up to speed to work on your product of choice.

## What's in the box?

**Config:** Generate the necessary configuration for each POS and Brand based on the request URL.

**Device:** Detect device type and media based on user-agent

**Language:** Detect language and direction based on `path | cookie | param | config`

**Translation:** Fetch translation if required

**Currency:** Fetch translation if required

## Usage

```js
const express = require('express');
const { middleware } = require('@tajawalae/web-server-middleware');

const app = express();
// Application middlewares
app.use([
  middleware.config,
  middleware.device,
  middleware.language,
  middleware.translation,
  middleware.currency
]);

app.listen(PORT, () => {
  console.log(`server is running in ${NODE_ENV} mode`);
  console.log(`listening on http://localhost:${PORT}`);
});
```

_[TODO]_

- [x] Translation middleware
- [ ] Add Code Style checks for the project (eslint + husky)
- [x] Local host dynamic config
- [x] Replace `envId` with `domain`
- [x] Replace `lang` with `language`
npm package: @tajer/ng.api
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.2.0.
Latest version: 0.0.2

# TajerApi

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.2.0.

## Code scaffolding

Run `ng generate component component-name --project tajer.api` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project tajer.api`.
> Note: Don't forget to add `--project tajer.api` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build tajer.api` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build tajer.api`, go to the dist folder `cd dist/tajer.api` and run `npm publish`.

## Running unit tests

Run `ng test tajer.api` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
npm package: @tajer/ng.ui
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.2.0.
Latest version: 0.4.0

# TajerUi

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.2.0.

## Code scaffolding

Run `ng generate component component-name --project tajer.ui` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project tajer.ui`.
> Note: Don't forget to add `--project tajer.ui` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build tajer.ui` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build tajer.ui`, go to the dist folder `cd dist/tajer.ui` and run `npm publish`.

## Running unit tests

Run `ng test tajer.ui` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.