So I really love the concept of npm and nodejs, but I am having a hard time grasping css most less JavaScript and I'm aware that's a huge part of the problem. But I guess what I'm asked is when I npm install a package, how do I
List ALL of the possible commands and/or scripts for the package?
Use said package as a standalone by itself?
For example Tinycme WYSIWYG package I installed globally and can't figure out how to use it.
Using npm packages in your projects: https://docs.npmjs.com/using-npm-packages-in-your-projects
Once you have installed a package in node_modules, you can use it in your code.
Node.js module
If you are creating a Node.js module, you can use a package in your module by passing it as an argument to the require function.
var lodash = require('lodash');
var output = lodash.without([1, 2, 3], 1);
console.log(output);
package.json file
In package.json, list the package under dependencies. You can optionally include a semantic version.
{
"dependencies": {
"@package_name": "^1.0.0"
}
}