README.md
load / save java.util.Properties.
install
yarn add dot-properties-loaderyarn-tool add dot-properties-loaderyt add dot-properties-loader
demo
# You are reading the ".properties" entry.! The exclamation mark can also mark text as comments.# The key characters =, and : should be written with a preceding# backslash to ensure that they are properly loaded. However, there# is no need to precede the value characters =, and : by a backslash.website = https://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 keykey\ with\ spaces = This is the value that could be looked up with \ the key "key with spaces". # Unicodetab : \u0009 # If you want your property to include a backslash, it should be# escaped by another backslashpath c:\\wiki\\templates# However, some editors will handle this automatically tab1 : \u0009tab1.a : \u0009tab1.b : \u0009 kkk2: \u516c\u5be9\u958b\u59cbkkk3: 公審開始
; console.logdp.treeconsole.logdp.lines dp.set'kkk', '公審開始'; console.log dp.stringify
# You are reading the ".properties" entry.# The exclamation mark can also mark text as comments.# The key characters =, and : should be written with a preceding# backslash to ensure that they are properly loaded. However, there# is no need to precede the value characters =, and : by a backslash.website = https://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 keykey\ with\ spaces = This is the value that could be looked up with the key "key with spaces". # Unicodetab = \t # If you want your property to include a backslash, it should be# escaped by another backslashpath = c:\\wiki\\templates# However, some editors will handle this automatically tab1 = \ttab1.a = \ttab1.b = \t kkk2 = \\u516c\\u5be9\\u958b\\u59cbkkk3 = \\u516c\\u5be9\\u958b\\u59cbkkk = \\u516c\\u5be9\\u958b\\u59cb