java-properties-namespaced-loader

1.0.0 • Public • Published

Quick start

This loader enables to require Java .properties files to your webpack-driven application. Keys are nested using java properties namespaces. Values can contain the variables in form of ${a}. This is forked from io-german/java-properties-flat-loader and just added options for properties module.

Example:

messages_en.properties

label.landing.title = Hello!

Consider this code:

var messages = require(./messages_en.properties);
console.log('Title message is "' + messages['label.landing.title'] + '"');

It will result with this log message:

Title message is "Hello!"

Version history

1.0.0

  • Added almost complete support of .properties file format (thanks to the properties module)

0.1.1

  • Added this document

/java-properties-namespaced-loader/

    Package Sidebar

    Install

    npm i java-properties-namespaced-loader

    Weekly Downloads

    1

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • lifter035