
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
consequaturodio
Advanced tools
${badge('npm')} ${badge('npm-license')} ${badge('github-issues')}
${pkg.description}
${badge('nodei')}
${badge('travis-status')} ${badge('github-stars')} ${badge('github-forks')}
${badge('github-forks')}
${badge('dependencies')} ${badge('devDependencies')}
const siteStarter = require('tsm.name');
import {AppResponse, BasicRoutes} from 'ts-site-starter';
import {Request} from 'express';
export class AppRoutes extends BasicRoutes {
constructor(basePath: string) {
super(basePath);
this.addRoutes();
}
homePage(req: Request, res: AppResponse) {
res.serve('home', {});
}
addRoutes() {
this.router.get('/', this.homePage.bind(this));
}
}
import * as express from "express";
import * as log from 'great-logs';
import { configureRest, serverConfig } from 'ts-site-starter';
import { AppRoutes } from './lib/app-routes';
/**
* The server.
* @class Server
*/
export class Server {
public app: express.Application;
/**
* Constructor.
* @class Server
* @constructor
*/
constructor() {
//create expressjs application
this.app = express();
configureRest(this.app, express);
}
routeApp() {
const routes = (new AppRoutes('')).getRoutes();
this.app.use(routes);
}
start() {
this.routeApp();
const port = serverConfig.getPort();
this.app.listen(port, function () {
log.info('port: %s', port);
log.info('url: %s', serverConfig.base);
});
}
}
// Start the application
new Server().start();
npm install --save ${pkg.name}
${scripts()}
${dependencies()}
Contributions welcome; Please submit all pull requests against the master branch. If your pull request contains TypeScript patches or features, you should include relevant unit tests. Please check the Contributing Guidelines for more details. Thanks!
${author()}
${license()}
FAQs
Unknown package
We found that consequaturodio 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.