open-index/open-npm huggingface dataset:
npm package: @gafacloud/naaora-front-core
Description: Tha naaora front Core Library, All you need to build Naaora Rest API and Use Common core tools like interceptors, resolver, models, enum ...
Author: GAFA CLOUD
Latest version: 0.0.1

# NaaoraFrontCore

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.0.8.

## Installation

This Library can be installed in your Angular project by calling `npm install @gafacloud/naaora-front-core `

## How to use it

Once the Library is installed please follow this steps :

- Add the Library in App Module
- Init the Library by passing the config value to it

Here is an example of how the import and the library configuration works :

```ts
import { CONFIG_TOKEN, ConfigLibrary, NaaoraFrontCoreModule } from 'naaora-front-core';
/**
* Naaora Front Core Configuration Library
*/
const config: ConfigLibrary = {
  baseUrl: environment.baseUrl,
  templateId: environment.templateId
}

@NgModule({
declarations: [AppComponent, AboutUsComponent],
imports: [
  BrowserModule,
  ...
],
providers: [
  {
    provide: APP_INITIALIZER,
    useFactory: appInit,
    multi: true,
    deps: [ShoppingCartService, TemplateConfigService, CookieService],
  },
  ...
  { provide: CONFIG_TOKEN, useValue: config }

```

## Build

Once the Library imported and configured pleas Run `ng build` to see if you have some errors related to it.

## Tips

Sometimes you will have some error such as an item is not exported in the library or something like that, if it is the case please clear the angular cash by deleting the folde .angular
npm package: @gafo/bingsearch
Description: Simple NodeJS Bing Search API with zero dependencies.
Author: GAFO TECH
Latest version: 1.0.0

# bingsearch
> Simple NodeJS Bing Search API with zero dependencies.

## Installation

```bash
npm i @gafo/bingsearch
```

## Usage

```javascript
var Bing = require('bingsearch');
var bing = new Bing(SUBSCRIPTION_KEY);
bing.query('GAFO TECH').then(result => {
  console.log(JSON.stringify(result,null,2));
});
```
npm package: @gafreax/csscrunch
Description: Simple CSS Parser to tokenize CSS, merge rules, and optimize it
Author: Gabriele Fontana
Latest version: 1.2.13

# CSS Crunch

This package provides a powerful and efficient TypeScript library for optimizing CSS strings. It enables developers to easily compress css JavaScript projects.

The great focus is on keeping a great compatibility across all kind of render engine especially on the various Outlook.

## Features
* **Group rules:** Group same rules with one selector.
* **Compress:** Compress the size by removing not necessary char.
* **Merge selector:** Merge same selector into only one.
* **Media Query:** Move all media queries at the bottom.


## Installation

```bash
npm install @gafreax/csscrunch
```

## Usage

```typescript
// ESM
import csscrunch from '@gafreax/csscrunch'
const { default: compile } = csscrunch

const cssString = '.example { color: red; font-size: 16px; }';
const parsedCSS = compile(cssString);

```

```typescript
// CommonJS
const csscrunch = require('@gafreax/csscrunch')
const { default: compile } = csscrunch

const cssString = '.example { color: red; font-size: 16px; }';
const parsedCSS = compile(cssString);

```

## Optimization
To enable the optimization pass a `Optimizations` object (file: `src/lib/optimization.d.ts`)  to the instance:

```typescript
interface Optimizations {
  paddingShortHand?: boolean
  marginShortHand?: boolean
  removeZeroUnits?: boolean
}
```



## CLI Usage

**Quickly clean up your Css:**

To optimize your CSS file, simply run the following command in your terminal:

```bash
$ npm start -- compile input.css optimized.css
```

Or via npx

```bash
$ npx @gafreax/csscrunch compile input.css optimized.css
```

Or via global install
```bash
$ npm install -g @gafreaxa/csscrunch
$ csscrunch compile input.css optimized.css
```

You can also use the flags:
`--optimize-short-hand` to optimize padding and margin short hand
`--optimize-margin` to optimize margin short hand
`--optimize-padding` to optimize padding short hand
`--remove-zero-units` to remove zero units
`--optimize-all` to enable all optimizations
Example:

```bash
$ npx @gafreax/csscrunch compile --optimize-all input.css optimized.css
```

## Benchmark

This project includes two types of benchmarks.

### Vitest Benchmarks

To run the standard suite of benchmarks, use the following command:

```bash
pnpm run test:bench
```

### Performance Comparison vs. clean-css

A dedicated script is available to compare the performance of `csscrunch` against `clean-css`. To run it, use the following command:

```bash
ts-node benchmark/comparison.ts
```

## Contribution

We welcome contributions to this open-source project. If you encounter issues or have suggestions for improvement, please feel free to create GitHub issues or submit pull requests.