s-declare
An easy way to create named modules within the application.
Node.js
installation for npm i s-declare --save
Browser
installation for bower i s-declare --save
Declaration of module
Arguments it's a modules which be applied to function for creating module. Of course, we can use the standard way.
var declare = ;// write like node module and declaration modulemoduleexports = ; // got itdeclare; // => stored module 'test'
More complicated
When we create a separate module, create a declaration of files related to this module.
var declare = ; // then create modulemoduleexports = ; if declare == moduleexports && declare == console; else console;;
No store
When we create a module for NPM no need stored parts of module in declarator.This is not just pointless and even harmful. We can only use the declarator for file management. To create a user-friendly module supplier.
var declare = ; // with name null, a declarator isn't stored modulemoduleexports = ;