Notable Pottery Manufacturer
    Have ideas to improve npm?Join in the discussion! »

    @resource-sentry/reader-properties

    1.0.0 • Public • Published

    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

    Install

    npm i @resource-sentry/reader-properties

    DownloadsWeekly Downloads

    4

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    123 kB

    Total Files

    16

    Last publish

    Collaborators

    • avatar