steveukx / properties

Properties reader for Node.js
MIT License
77 stars 33 forks source link

How to remove a property? #26

Open betonetotbo opened 5 years ago

betonetotbo commented 5 years ago

There is no way to remove a property from an existing PropertiesReader instance.

ghuser commented 1 year ago

Workaround:

let properties = propertiesReader('input.properties');
//Note: after the line below, properties.length will reflect the new size (as expected).
delete properties._properties['property.to.remove'];