Installations
npm install slush-node-typescript2
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>= 6.0.0
Node Version
6.7.0
NPM Version
3.10.3
Score
45
Supply Chain
72.6
Quality
64.2
Maintenance
25
Vulnerability
90
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (87.27%)
TypeScript (12.73%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
kristianmandrup
Download Statistics
Total Downloads
723
Last Day
1
Last Week
2
Last Month
11
Last Year
59
GitHub Statistics
MIT License
77 Commits
1 Forks
3 Watchers
2 Branches
1 Contributors
Updated on Oct 06, 2016
Package Meta Information
Latest Version
0.5.0
Package Id
slush-node-typescript2@0.5.0
Size
8.79 kB
NPM Version
3.10.3
Node Version
6.7.0
Total Downloads
Cumulative downloads
Total Downloads
723
Last Day
0%
1
Compared to previous day
Last Week
-66.7%
2
Compared to previous week
Last Month
120%
11
Compared to previous month
Last Year
-4.8%
59
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
slush-node-typescript2
A slush generator for Node.js and TypeScript based on slush-node-typescript but adapted for TypeScript 2.x.
Extended to support webpack and more config options for testing:
- gulp or webpack as task managers
- karma and nightwatch for E2E testing
- istanbul for test coverage
- sinon for server mocking
Getting Started
Sample project can be found here
Use typings CLI to install type definitions.
Installation
Install slush-node-typescript2
globally:
1$ npm i -g slush-node-typescript2
Remember to install slush
globally as well, if you haven't already:
1$ npm i -g slush
Usage
Create a new folder for your node esnext package. Then cd into it.
1$ mkdir node-typescript-package && cd node-typescript-package
Initiate the generator:
1$ slush node-typescript2
Install type definitions to run tests:
typings install chai mocha node --global --save
(optionally) install all the latest modules for testing:
npm install typescript webpack ts-loader chai karma karma-chai karma-mocha karma-phantomjs-launcher karma-sinon karma-typescript-preprocessor2 karma-webpack mocha phantomjs-prebuilt sinon --save-dev
Tasks
generate
1$ slush node-typescript2:generate foo/bar
Will generate src/foo/bar.ts
and test/src/foo/bar_test.ts
to your package.
Conventions
The generator expects a few conventions. They are easy to change if they are not suitable.
- Source code for your npm package is in the
src
directory. - Test code is in the
test
directory. - Compiled JavaScript code is outputed to the
lib
directory. - The package
main
module is located atlib/{packageName}.js
.
Getting To Know Slush
Slush is a tool that uses Gulp for project scaffolding.
Slush does not contain anything "out of the box", except the ability to locate installed slush generators and to run them with liftoff.
To find out more about Slush, check out the documentation.
License
MIT

No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
Last Scanned on 2025-02-10
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