
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
human-lanterns
Advanced tools
Builds out basic CRUD scaffolding files for Express/Mongoose/EJS with the following file stucture.
npm install -g human-lanterns
lanterns gen:modelname
app
- views
| - modelname(s)
| - index.ejs
| - modelname.ejs
| - form.ejs
| - edit.ejs
| - new.ejs
- routes
| - modelname(s).js (to be copied and deleted)
- controllers
| - modelname(s).js
- models
| - modelname.js
If folders don't exist, they will be created, if they already exist, the files will be added to the existing folders.
Human Lanterns includes 5 generators. The main generator that creates all resoureces listed above and then a separate generator for views, routes, controllers, and models. Proper pluralization will be added to the modelname, so please use singular form when generating to avoided things like "clientss".
To generate a boilerplate model run:
lanterns gen:modelname
This runs all 4 generators; model, controller, routes, and views.
lanterns model:modelname
This creates app/models folder(s) if they don't already exist and creates a modelname.js file inside with barebone required title and body text field and commented out Mongoose schema types.
lanterns controllers:modelname
This creates app/controllers folder(s) if they don't already exist and creates a names.js file inside with basic CRUD controllers.
lanterns views:modelname
This creates app/views folder(s) if they don't already exist and creates an ejs template for the basic CRUD controllers. See above for files created specifically.
This is to be used with Express 4.
This uses a toSlug(); middleware function. Please add this to your middleware, or use this function in your pre-save hook
toSlug = function (value) {
return value.toLowerCase().replace(/[ |_]/g, '-').replace(/[^\w-]+/g,'');
};
This package takes its name from my favorite movie, the Sun Chung classic Human Lanterns (1982) Trailer, Cool Ass Cinema Review - Word of warning - This movie is gruesome and violent but is completely unique and has an excellent visual style and choreography.
FAQs
Builds out basic CRUD scaffolding files for Express/Mongoose/EJS
We found that human-lanterns 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.