# @lyracom/properties-loader

> Webpack loader for .properties files

Latest version **1.0.2** (published 2021-05-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lyracom/properties-loader
pnpm add @lyracom/properties-loader
yarn add @lyracom/properties-loader
bun add @lyracom/properties-loader
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-05-27 |
| First published | 2021-05-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 6.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Lyra |
| Maintainers | yyoyo, alacarta, alex-fournier, moabi, gigaga |
| Keywords | webpack, loader, properties |

## Links

- npm: https://www.npmjs.com/package/@lyracom/properties-loader
- Repository: https://github.com/lyra/webpack-properties-loader
- Issues: https://github.com/lyra/webpack-properties-loader/issues
- npm.io page: https://npm.io/package/@lyracom/properties-loader

## Dependencies (3)

- [properties](https://npm.io/package/properties.md) ^1.2.1
- [loader-utils](https://npm.io/package/loader-utils.md) ^2.0.0
- [schema-utils](https://npm.io/package/schema-utils.md) ^3.0.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2021-05-27
- 1.0.1 — 2021-05-25
- 1.0.0 — 2021-05-25

## README

# @lyracom/properties-loader

> Webpack loader for .properties files, based on the [properties](https://www.npmjs.com/package/properties) package.

[![npm (scoped)](https://img.shields.io/npm/v/@lyracom/properties-loader)](https://www.npmjs.com/package/@lyracom/properties-loader)

## Installation

```sh
yarn add -D @lyracom/properties-loader
```

or

```sh
npm install -D @lyracom/properties-loader
```

## Usage

### Webpack configuration

```js
module.exports = {
  module: {
    rules: [
      {
        test: /\.properties$/,
        loader: '@lyracom/properties-loader',
        options: {
          namespaces: true,
          sections: true,
          // other properties.parse options...
        },
      },
    ],
  },
}
```

### Webpack inline

```js
import strings from '!@lyracom/properties-loader?namespaces&sections!./strings.properties'
```

Options can be passed with a query parameter, e.g. `?namespaces&sections=false`, or a JSON object, e.g. `?{"namespaces":true,"sections":false}`.

More info here: https://webpack.js.org/concepts/loaders/#inline

---
_Source: https://npm.io/package/@lyracom/properties-loader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
