Gathering detailed insights and metrics for node-association
Gathering detailed insights and metrics for node-association
Gathering detailed insights and metrics for node-association
Gathering detailed insights and metrics for node-association
@mobsya-association/node-blockly
Blockly for Node.js and Browser as CommonJS module
@mobsya-association/thymio-api
A JS api to communicate with Thymio from node and browsers
@pnetwork-association/ptokens-utils
Node JS library for the pTokens' backend services
apriorijscpp
apriori nodejs cpp
a frame work of popular npm modules for building mongo express based application
npm install node-association
Typescript
Module System
Node Version
NPM Version
JavaScript (70.68%)
TypeScript (29.32%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
1 Stars
11 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Nov 20, 2019
Latest Version
0.0.9
Package Id
node-association@0.0.9
Unpacked Size
27.79 kB
Size
6.51 kB
File Count
35
NPM Version
5.6.0
Node Version
8.11.2
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A few base class to extend from, and a class finder system to find those classes
1npm install --save node-association
1const { ClassFinder } = require('node-association')
Class to be found should be organized inside of a folder in the root directory of the node project For Example we would like to create a series of services where each filer is a Service. Folder should be named using lowercase pluralized version of the class type. Files should be organized in the below manor
1root 2|- services 3 |- AService.js 4 |- AnotherService.js 5 |- Namespace 6 |- YetAnotherService.js 7 |- AlternativeNaming.js
Based on the above example to find AService find anywhere in the application by:
1ClassFinder.classFor('A', 'Service')
class file naming is case sensitive
Finding AnotherService:
1ClassFinder.classFor('Another', 'Service')
Finding YetAnotherService with the namespacing:
1ClassFinder.classFor('Namespace::YetAnother', 'Service')
Namespace is also case sensitive
Finding AlternativeNaming:
1ClassFinder.classFor('AlternativeNaming', 'Service')
If desired files can omit the Service portion of the naming.
Too actually require the classes, having is the proper commonjs module exports is also required. Each of the classes may either have the class be the default export e.g.
1module.exports = class AService { 2 3}
1export default class AService { 2 3}
It is also possible to export the class as an named property e.g.
1class AService {} 2module.exports = { 3 AService 4}
1class AService {} 2export AService
The naming of the name export follows the same rules as file naming. It is case sensitive, and the name of the actual class type can be omitted
1const { Presenter } = require('node-association')
A presenter is a base class that can be extended to wrapper both async and sync functionalities the key performer of the presenter is the instance execute method
1class Executer extends Presenter { 2 execute() { 3 console.log("HELLO") 4 } 5} 6const anExecuter = new Executer 7(async () => { 8 await anExecuter 9})() // will print HELLO
the execute function can be an async function or standard function with callback or error first callback.
1const { Mixer } = require('node-association')
A mixer is a base class that provides the mixin static method to adding mixin functionality. Mixins will override all static and instance methods except constructor will be copied over to the class prototype
1class AClass extend Mixer {} 2class AMixin {} 3AClass.mixin(AMixin)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/11 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
40 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More