Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/previousdeveloper/fil
Simple File Decorator
https://github.com/previousdeveloper/fil
file nodejs
Last synced: 8 days ago
JSON representation
Simple File Decorator
- Host: GitHub
- URL: https://github.com/previousdeveloper/fil
- Owner: previousdeveloper
- License: apache-2.0
- Created: 2017-01-30T10:58:00.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-30T14:18:03.000Z (almost 8 years ago)
- Last Synced: 2024-10-12T01:44:38.522Z (about 1 month ago)
- Topics: file, nodejs
- Language: JavaScript
- Size: 9.77 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Fil
==============Fil is a json file decorator
## Install
### Locally
```bash
npm install fil-file --save
```## Usage
```javascript
var filFile = require('fil-file');
var fileDef =
[{
key: "$startDate",
value: "2017-01-23T00:00:00.001Z"
},
{
key: "$endDate",
value: "2017-01-30T00:00:00.001Z"
}];filFile.parse(testData, fileDef, function (result) {
console.log(result);
});
```