Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@userfrosting/ts-log-adapter-gulplog
Advanced tools
An adapter for the ts-log interface that pushes logging to gulplog with optional arguments JSON encoded.
Branch | Status |
---|---|
master |
An adapter for the ts-log interface that pushes logging to gulplog.
Before being passed to gulplog
, the message optional arguments will be processed to ensure proper logging. The trace
log level does not map across and will be directed to GulpLog.debug
with TRACE:
prefixed to logging.
npm i -D @userfrosting/ts-log-adapter-gulplog
// gulpfile.mjs
import { GulpLogLogger } from "@userfrosting/ts-log-adapter-gulplog";
import { src, dest } from "gulp";
import AssetBundler from "@userfrosting/gulp-bundle-assets";
import cleanCss from "gulp-clean-css";
import concatCss from "gulp-concat-css";
import concatJs from "gulp-concat-js";
import uglify from "gulp-uglify";
export function bundle() {
const config = {
bundle: {
example: {
scripts: [
"foo.js",
"bar.js"
],
styles: [
"foo.css",
"bar.css"
]
}
},
logger: new GulpLogLogger(),
};
const joiner = {
Scripts(bundleStream, name) {
return bundleStream
.pipe(concatJs(name + ".js"))// example.js
.pipe(uglify());
},
Styles(bundleStream, name) {
return bundleStream
.pipe(concatCss(name + ".css"))// example.css
.pipe(cleanCss());
}
};
return src("src/**")
.pipe(new AssetBundler(config, joiner))
.pipe(dest("public/assets/"));
}
$ gulp bundle
See docs/api.
See CONTRIBUTING.md.
FAQs
An adapter for the ts-log interface that pushes logging to gulplog with optional arguments JSON encoded.
We found that @userfrosting/ts-log-adapter-gulplog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.