I've made browserify version of cson with simple code
"use strict";
var CSON = require('cson')
var result = CSON.createCSONString({a:{b:'c'}}, {})
if ( result instanceof Error ) {
console.log(result.stack)
} else {
console.log(result)
};
But console throw: Error: Cannot find module '/..\node_modules\cson/package.json'
I've made browserify version of cson with simple code
"use strict"; var CSON = require('cson') var result = CSON.createCSONString({a:{b:'c'}}, {}) if ( result instanceof Error ) { console.log(result.stack) } else { console.log(result) };
But console throw: Error: Cannot find module '/..\node_modules\cson/package.json'
Any help?