open-index/open-npm huggingface dataset:
npm package: @gkarthiks/isemptyobj
Description: Checks the given field is empty recursively and returns true if empty.
Author: Karthikeyan Govindaraj
Latest version: 0.2.1

# isEmptyObj

![node](https://img.shields.io/badge/node-v8.0.0-blue.svg) ![license](https://img.shields.io/badge/license-MIT-green.svg) [![Build Status](https://travis-ci.org/gkarthiks/isEmptyObj.svg?branch=master)](https://travis-ci.org/gkarthiks/isEmptyObj)

Checks the given object is empty recursively (if needed) and returns true for empty.

### Why this?
This library checks the given `variable` or `object` for the *null* or *empty*. This will **recursively** goes into the object if needed and checks for the null / empty values. For example if an `Object` is having multiple levels and all those levels have just empty value, this will return `true`. Even at the least level, if it finds a value associated of with any type like Array or Object or String or even number this returns `false`.

## Installation
> npm i @gkarthiks/isemptyobj

## Usage
```JS
var a = [];

var b = {};

var c = [{}];

var d = [{1:2}];

var e = { one: 1 };

var f = {
  source: {}, 
  type: 'typeValue', 
  pool: {}, 
  acquireConnectionTimeout: 30000, 
  system: [ {
            a: [1,2], 
            c: [5,6] 
            }, 
            2]
  };

var g = {
timeseries: {
  tillDate: ['val1', 'val2', 'val3', 'val4', 'val5']
  }
};

var h = {
  timeseries: {
    tillDate: [],
    }
};

var i = {
  a: [], 
  b:{ }
};

var j = {
  a: [], 
  b:{ 
    aa:[11],
    bb:{}
  }
};

var k = {
  system: [ {
            a: [1,2], 
            c: [5,6], 
            }, 
          2]
};

var l = {
      source: {}, 
      type: "", 
      pool: {},
      acquireConnectionTimeout: '', 
      system: [ {
        a: [], 
        c: []
        }, 
      ]
  };
```

```
isEmptyObj(a)         // => true
isEmptyObj(b)         // => true
isEmptyObj(c)         // => true
isEmptyObj(d)         // => false
isEmptyObj(e)         // => false
isEmptyObj(f)         // => false
isEmptyObj(g)         // => false
isEmptyObj(h)         // => true
isEmptyObj(i)         // => true
isEmptyObj(j)         // => false
isEmptyObj(k)         // => false
isEmptyObj(l)         // => true
```
npm package: @gkatsanos/vite-svg-loader
Description: A Vite loader to manage SVG files
Latest version: 1.3.1

*This is a fork of https://github.com/jpkleemans/vite-svg-loader with the sole difference that it replaces `component` with `inline` to make it backwards compatible with components using the webpack svg loader.*

# Vite SVG loader
Vite plugin to load SVG files as Vue components, using SVGO for optimization.

<a href="https://www.npmjs.com/package/vite-svg-loader" target="_blank"><img src="https://img.shields.io/npm/v/vite-svg-loader?style=flat-square" alt="Version"></a>
<a href="https://www.npmjs.com/package/vite-svg-loader" target="_blank"><img src="https://img.shields.io/npm/dw/vite-svg-loader?style=flat-square" alt="Downloads"></a>
<a href="https://github.com/jpkleemans/vite-svg-loader/actions" target="_blank"><img src="https://img.shields.io/github/actions/workflow/status/jpkleemans/vite-svg-loader/e2e.yml?branch=main&label=tests&style=flat-square" alt="Tests"></a>
<a href="https://www.npmjs.com/package/vite-svg-loader" target="_blank"><img src="https://img.shields.io/npm/l/vite-svg-loader?style=flat-square" alt="License"></a>

```vue
<template>
  <MyIcon />
</template>

<script setup>
import MyIcon from './my-icon.svg'
</script>
```

### Install
```bash
npm install vite-svg-loader --save-dev
```

### Setup

#### `vite.config.js`
```js
import svgLoader from 'vite-svg-loader'

export default defineConfig({
  plugins: [vue(), svgLoader()]
})
```

### Import params
### URL
SVGs can be imported as URLs using the `?url` suffix:
```js
import iconUrl from './my-icon.svg?url'
// '/assets/my-icon.2d8efhg.svg'
```

### Raw
SVGs can be imported as strings using the `?raw` suffix:
```js
import iconRaw from './my-icon.svg?raw'
// '<?xml version="1.0"?>...'
```

### Component
SVGs can be explicitly imported as Vue components using the `?inline` suffix:
```js
import IconComponent from './my-icon.svg?inline'
// <IconComponent />
```

### Default import config
When no explicit params are provided SVGs will be imported as Vue components by default.
This can be changed using the `defaultImport` config setting,
such that SVGs without params will be imported as URLs (or raw strings) instead.

#### `vite.config.js`
```js
svgLoader({
  defaultImport: 'url' // or 'raw'
})
```

### SVGO Configuration
#### `vite.config.js`
```js
svgLoader({
  svgoConfig: {
    multipass: true
  }
})
```

### Disable SVGO
#### `vite.config.js`
```js
svgLoader({
  svgo: false
})
```

### Skip SVGO for a single file
SVGO can be explicitly disabled for one file by adding the `?skipsvgo` suffix:
```js
import IconWithoutOptimizer from './my-icon.svg?skipsvgo'
// <IconWithoutOptimizer />
```

### Use with TypeScript
If you use the loader in a Typescript project, you'll need to import your svg files with the `?inline` param: `import MyIcon from './my-icon.svg?inline'`.

You'll also need to reference the type definitions:
```ts
/// <reference types="vite-svg-loader" />
```