Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

java-props

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

java-props

Read Java .properties files (using the same specification), without useless additional features.

  • 2.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.3K
decreased by-25%
Maintainers
1
Weekly downloads
 
Created
Source

java-props

npm version TypeScript Build Status codecov

Read/Parse Java .properties files (using EXACTLY the same specification) in Javascript (browser) and Node.js.

This module provides its own TypeScript declarations (.d.ts).

Installation

npm install java-props

Example

# file.properties
a = Hello World
b : Node.js\u00AE
c value
d=foo\
  bar
const javaProps = require('java-props');

javaProps
    .parseFile('./file.properties')
    .then((props) => {
        console.log(props);
        // { a: 'Hello World', b: 'Node.js®', c: 'value', d: 'foobar' }
    })
    .catch((err) => {
        console.error(err);
    });

Documentation

For a detailed API reference, see: node-java-props.nathan818.fr

Building

This project uses TypeScript. To create javascript sources run:

yarn run build

Testing

To run the test suite, first install the dependencies, then run yarn test:

yarn install
yarn test

Contributing

Contributions are welcome.

The goal is to keep a simple project without unnecessary (non essential) features. It is recommended to open an issue before introducing new features to discuss them.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the MIT License. See the LICENSE file for details.

Keywords

FAQs

Package last updated on 03 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc