
Security News
Insecure Agents Podcast: Certified Patches, Supply Chain Security, and AI Agents
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.
generator-node-ts
Advanced tools
Creates a simple project structure for a node application using typescript. It installs the default node type definition files as well. You can choose to add mocha and chai for testing, via a prompt.
If you have yeoman installed, simply call (if 'name' is not present, the working folders name will be used):
npm install generator-node-ts [-g]
yo node-ts [name]
You will then be asked, if you like to add testing capabilities to your project (default is false):
Would you like to add mocha and chai (testing)? (y/N)
If you chose to add testing, you are then able to choose if you prefer to have your specs in a separate 'test' folder (next to the 'src' folder) or having the specs next to the source files in the 'src' folder.
Should tests be stored in a separate folder, instead of next to the source files?
-yes:
<your-app>/
src/
.ts
test/
.spec.ts
-no:
<your-app>/
src/
.ts
.spec.ts
(y/N)
The generator comes with the following npm scripts:
npm start
Will transpile the .ts in src folder to .js files in dist folder. And start the node application.
npm test
[Only available if you enabled testing!] This will also transpile all .ts files and will run mocha tests on all .spec.js files in the dist folder.
FAQs
scaffolds a basic node project with typescript.
We found that generator-node-ts 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
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.

Security News
The planned feature introduces a review step before releases go live, following the Shai-Hulud attacks and a rocky migration off classic tokens that disrupted maintainer workflows.