Skip to content

using nodejs like module management #101

@vontio

Description

@vontio

In nodejs I can create a module using

module.exports = MyModule

and require this in main.js file.

MyModule = require('mymodule')

I use coffeescript to write js,coffeescript will wrap generated code in a function,I don't know how to use module write with coffeescript without nodejs like module management.
testcoffee

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions