moleculer-ejson-serializer
v1.0.2
Published
moleculer ejson serializer
Downloads
59
Readme
Moleculer EJSON Serializer
Serialize data with EJSON.
Why?
The default JSON serializer does not handle
- Date
- NaN
- Infinity
while this package does.
Current Version (v1.0.2)
- support moleculer >= 0.11.0
Install
npm install --save moleculer-ejson-serializer
Usage
// moleculer.config.js
const Serializer = require('moleculer-ejson-serializer')
module.exports = {
...
serializer: new Serializer()
}
License
MIT