@ritani/to-simple-js

1.0.8 • Public • Published

Convert an object to javascript that exports the object with simple commenting mechanism

How to install

npm install @ritani/to-simple-js

How to use

const { to_simple_js } = require('@ritani/to-simple-js');

const object = [
    {
        x: 1,
        y: (a) => console.log(a),
    }
    {
        x: 2,
        y: (a) => console.log(a),
    }
];

const result = to_simple_js('test', object);

console.log(result);

Package Sidebar

Install

npm i @ritani/to-simple-js

Weekly Downloads

1

Version

1.0.8

License

ISC

Unpacked Size

6.35 kB

Total Files

11

Last publish

Collaborators

  • daniyace
  • judak
  • samwen