Installations
npm install @userfrosting/ts-log-adapter-gulplog
Developer
userfrosting
Developer Guide
Module System
ESM
Min. Node Version
>=12.17.0
Typescript Support
Yes
Node Version
16.4.2
NPM Version
7.19.1
Statistics
1,210 Commits
3 Watching
2 Branches
3 Contributors
Updated on 25 Nov 2024
Languages
TypeScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
25,893
Last day
0%
2
Compared to previous day
Last week
-2.9%
33
Compared to previous week
Last month
-4.3%
134
Compared to previous month
Last year
-80.6%
2,142
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
ts-log-adapter-gulplog
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.
Install
1npm i -D @userfrosting/ts-log-adapter-gulplog
Usage
1// gulpfile.mjs 2import { GulpLogLogger } from "@userfrosting/ts-log-adapter-gulplog"; 3import { src, dest } from "gulp"; 4import AssetBundler from "@userfrosting/gulp-bundle-assets"; 5import cleanCss from "gulp-clean-css"; 6import concatCss from "gulp-concat-css"; 7import concatJs from "gulp-concat-js"; 8import uglify from "gulp-uglify"; 9 10export function bundle() { 11 const config = { 12 bundle: { 13 example: { 14 scripts: [ 15 "foo.js", 16 "bar.js" 17 ], 18 styles: [ 19 "foo.css", 20 "bar.css" 21 ] 22 } 23 }, 24 logger: new GulpLogLogger(), 25 }; 26 const joiner = { 27 Scripts(bundleStream, name) { 28 return bundleStream 29 .pipe(concatJs(name + ".js"))// example.js 30 .pipe(uglify()); 31 }, 32 Styles(bundleStream, name) { 33 return bundleStream 34 .pipe(concatCss(name + ".css"))// example.css 35 .pipe(cleanCss()); 36 } 37 }; 38 39 return src("src/**") 40 .pipe(new AssetBundler(config, joiner)) 41 .pipe(dest("public/assets/")); 42}
1$ gulp bundle
API
See docs/api.
License
Contributing
See CONTRIBUTING.md.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
security policy file detected
Details
- Info: security policy file detected: github.com/userfrosting/.github/.github/SECURITY.md:1
- Info: Found linked content: github.com/userfrosting/.github/.github/SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/userfrosting/.github/.github/SECURITY.md:1
- Info: Found text in security policy: github.com/userfrosting/.github/.github/SECURITY.md:1
Reason
1 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/userfrosting/ts-log-adapter-gulplog/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/userfrosting/ts-log-adapter-gulplog/ci.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/userfrosting/ts-log-adapter-gulplog/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/userfrosting/ts-log-adapter-gulplog/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/userfrosting/ts-log-adapter-gulplog/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/userfrosting/ts-log-adapter-gulplog/ci.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/userfrosting/ts-log-adapter-gulplog/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/userfrosting/ts-log-adapter-gulplog/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/userfrosting/ts-log-adapter-gulplog/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/userfrosting/ts-log-adapter-gulplog/ci.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/userfrosting/ts-log-adapter-gulplog/ci.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:81: update your workflow using https://app.stepsecurity.io/secureworkflow/userfrosting/ts-log-adapter-gulplog/ci.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:86: update your workflow using https://app.stepsecurity.io/secureworkflow/userfrosting/ts-log-adapter-gulplog/ci.yml/master?enable=pin
- Info: 0 out of 8 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 5 third-party GitHubAction dependencies pinned
- Info: 2 out of 2 npmCommand dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/ci.yml:70
- Warn: no topLevel permission defined: .github/workflows/ci.yml:1
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 30 are checked with a SAST tool
Score
6.2
/10
Last Scanned on 2024-11-18
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