1.0.0 • Published 6 years ago

@resource-sentry/reader-properties v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Reader: Properties

Extracts all values from the properties file. Ignores empty lines and comment lines (# and !). Supports multi-line properties.

Note: properties files are popular in Java world.

Version Dependencies

Installation

yarn add --dev @resource-sentry/reader-properties

Configuration

  • entry, path to a Properties file.

Example

# File: "my-demo.properties"
hello:world
easyCount = 8

Properties will be compiled into rs.js file ready for use in production code.

import Rs from './rs';

Rs.getResource(Rs.Text.HELLO); // Returns "world"
Rs.getResource(Rs.Value.EASY_COUNT); // Returns 8