How to use the json-stringify-date.parse function in json-stringify-date

To help you get started, we’ve selected a few json-stringify-date examples, based on popular ways it is used in public projects.

github Mailtrain-org / mailtrain / lib / db.js View on Github external
module.exports.redis.rpop('mailtrain:cache:' + key, (err, value) => {
            if (err) {
                return callback(err);
            }
            try {
                value = stringifyDate.parse(value);
            } catch (E) {
                return callback(E);
            }

            return callback(null, value);
        });
    };

json-stringify-date

Like JSON.stringify, but preserve timezones in date objects and parse dates into Date object

MIT
Latest version published 11 months ago

Package Health Score

64 / 100
Full package analysis

Popular json-stringify-date functions