JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q32360F
  • License BSD

Code-this is node.js module that converts JavaScript variables into source code. Unlike `JSON.stringify`, code-this also deals with reference(object) types of variables.

Package Exports

  • code-this

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (code-this) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Code-this

Code-this is node.js module that converts JavaScript variables into source code.

Unlike JSON.stringify, code-this also deals with reference(object) types of variables.

Installation

npm install code-this --save

Usage

var code = require('code-this');
var a = {a: function(n){return n;}};

code.convert(a);