Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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);
});

```