Skip to content

imcj/hxcommonjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hxcommonjs

You can use hxcommmonjs export commonjs modules.

Install

haxelib install hxcommonjs

Usage

hx.commonjs.Export.set("Hello", "Hello");

parameter 1 is field of exports, and 2 is class name.

// JS

var example = require("example.js");
var hello = new example.Hello();
console.log(hello.say());

// got "hello"

About

You can using hxcommmonjs export commonjs modules.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published