Skip to content

resource-sentry/reader-properties

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Resource Sentry Properties Reader.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published