guidesmiths/confabulous

View on GitHub
lib/processors/json.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
const debug = require('debug')('confabulous:transformers:json');
const parse = require('safe-json-parse/callback');

module.exports = function () {
  return function (text, cb) {
    debug('running');
    parse(text, cb);
  };
};