Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
nodus-ponens
Advanced tools
A light, full-stack framework for running high-level reasoning and cognitive science experiments in Node.js.
Weekly downloads
Readme
A light, full-stack framework for running high-level reasoning and cognitive science experiments in Node.js.
$ sudo npm install -g shelljs # nodus-ponens requires global installation of "shelljs"
nodus-ponens is a full-stack framework for running high-level cognitive science experiments. It comes bundled with a fully-functional experiment template. To set the experiment up, run as follows:
$ mkdir temp
$ cd temp
$ npm install nodus-ponens
$ npm explore nodus-ponens -- npm run-script create-template
$ node main.js
The framework will launch a server-side monitoring console (in the terminal), and the experiment can then be viewed at http://localhost:55151
.
var path = require("path");
var fs = require('fs');
var staticDirectory = path.resolve("static"); // Set directory of static HTML+CSS files
var dataDirectory = path.resolve("data"); // Set directory where data will be written
var participantIndex = 0; // Start participant numbering at this value + 1
var np = require("nodus-ponens")(participantIndex, staticDirectory, dataDirectory);
np.authors = "Authors";
np.experimentName = "Template1";
np.port = 55151;
// Note: The user has to define the function np.loadStimuli() that is intended to take a
// participant's ID number (an integer) as input and return an array of objects representing the
// stimuli catered to that participant. The function allows users to define stimuli directly, read
// stimuli from an external file, or pull stimuli from other resources. In the template file included
// with the experiment (see Quick Start Guide above), the function "setupStimuli" serves this purpose
// by importing experimental stimuli from a CSV file. Supposing that the user successfully defines
// this function, the nodus-ponens setup proceeds as follows:
function setupStimuli(PID) // Takes integer input and returns stimuli as set of JSON objects
{
/* Write appropriate stimuli generation code here ... */
return stimuli; // To randomize the order of the stimuli, return np.randomize(stimuli)
}
np.loadStimuli = setupStimuli;
np.launchStudy();
(c) 2022 Sangeet Khemlani, http://www.khemlani.net/, Creative Commons License.
FAQs
A light, full-stack framework for running high-level reasoning and cognitive science experiments in Node.js.
The npm package nodus-ponens receives a total of 4 weekly downloads. As such, nodus-ponens popularity was classified as not popular.
We found that nodus-ponens demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.