Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
node-properties-parser
Advanced tools
Readme
A parser for .properties files written in javascript. Properties files store key-value pairs. They are typically used for configuration and internationalization in Java applications. Here's an example of the format:
# You are reading the ".properties" entry.
! The exclamation mark can also mark text as comments.
website = http://en.wikipedia.org/
language = English
# The backslash below tells the application to continue reading
# the value onto the next line.
message = Welcome to \
Wikipedia!
# Add spaces to the key
key\ with\ spaces = This is the value that could be looked up with the key "key with spaces".
# Unicode
tab : \u0009
(taken from Wikipedia)
Currently works with any version of node.js.
parse(text)
: Parses text
into key-value pairs. Returns an object containing the key-value pairs.read(path, callback)
: Opens the file specified by path
and calls parse
on its content. The result is then passed to callback
as the second parameter. If an error occurs, the error object is passed to callback
as the first paramter.readSync(path)
: A synchronous version of read
. Opens the file specified by path
synchronously and calls parse
on its contents.The easiest way to get node-properties-parser is with npm:
npm install node-properties-parser
Alternatively you can clone this git repository:
git://github.com/xavi-/node-properties-parser.git
This project is released under The MIT License.
FAQs
A parser for .properties files written in javascript
The npm package node-properties-parser receives a total of 734 weekly downloads. As such, node-properties-parser popularity was classified as not popular.
We found that node-properties-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.