structurejs

1.0.6 • Public • Published

#structurejs

A solution to structure js codes in one file.

example

for browser:
<javascript src="build/structure.js"></script>
...

for node:
var structure = require('structurejs');
...

structure([
  /* structured codes */
  function(ths, cfg){
    console.log(cfg.greeting); // 'hello world'
  }
], {
  /* configuration */
  greeting: 'hello world'
});

Readme

Keywords

Package Sidebar

Install

npm i structurejs

Weekly Downloads

0

Version

1.0.6

License

MIT

Last publish

Collaborators

  • licg9999