Skip to content

require('j2c') vs require('j2c')() #35

@barryels

Description

@barryels

Perhaps I'm missing something, but the docs seem to be incorrect in stating how to 'require' this lib, i.e.

'use strict';

var j2c_test1 = require('j2c');
console.log(j2c_test1.sheet); // undefined

var j2c_test2 = require('j2c')();
console.log(j2c_test2.sheet); // [function body]

Note the function call for j2c_test2
I'm using Browserify with Babelify, if that makes any difference :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions