0.3.0 • Published 7 years ago

fluxjs v0.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

Build Status Coverage Status MIT license

Using this module in other modules

Here is a quick example of how this module can be used in other modules. The TypeScript Module Resolution Logic makes it quite easy. The file src/index.ts is a barrel that re-exports selected exports from other files. The package.json file contains main attribute that points to the generated lib/index.js file and typings attribute that points to the generated lib/index.d.ts file.

  • To use the FluxBulb class in a TypeScript file -
import { FluxBulb } from "fluxjs";

const bulb = new FluxBulb("127.0.0.1");
bulb.turnOn();
  • To use the FluxBulb class in a JavaScript file -
const FluxBulb = require('fluxjs').FluxBulb;

const bulb = new FluxBulb("127.0.0.1");
bulb.turnOn();
0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago