Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jimmy-collazos/gulp-properties-to-object
Parse properties files and save in Object
https://github.com/jimmy-collazos/gulp-properties-to-object
Last synced: 10 days ago
JSON representation
Parse properties files and save in Object
- Host: GitHub
- URL: https://github.com/jimmy-collazos/gulp-properties-to-object
- Owner: jimmy-collazos
- License: mit
- Created: 2016-11-12T12:54:17.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-03T07:28:43.000Z (over 7 years ago)
- Last Synced: 2024-11-21T17:09:59.778Z (2 months ago)
- Language: JavaScript
- Size: 94.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-properties-to-object
[![Build Status](https://travis-ci.org/jimmy-collazos/gulp-properties-to-object.svg?branch=master)](https://travis-ci.org/jimmy-collazos/gulp-properties-to-object)Parse properties files and save in memory(object)
## Install
```shell
npm install gulp-properties-to-object
```## Usage
```javascript
const toObject = require("gulp-properties-to-object");
var db = {};gulp.src("./src/*.properties")
.pipe(toObject(db))
.on('finish', function () {
console.log('__FINISH__', db);
});
```## TODO
- [x] Trim spaces
- [x] Stream support
- [ ] Export JSON
- [ ] Add benchmark
- [ ] Add Travis
- [ ] Add to Coveralls.io
- [ ] Add to Depstat## License
[MIT License](http://en.wikipedia.org/wiki/MIT_License)