Installations
npm install source-map-to-comment
Developer Guide
Typescript
No
Module System
ESM
Min. Node Version
^12.20.0 || ^14.13.1 || >=16.0.0
Node Version
12.22.1
NPM Version
6.14.12
Score
63
Supply Chain
59.3
Quality
75.3
Maintenance
100
Vulnerability
100
License
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
sindresorhus
Download Statistics
Total Downloads
1,484,668
Last Day
139
Last Week
939
Last Month
3,646
Last Year
58,174
GitHub Statistics
MIT License
15 Stars
14 Commits
3 Forks
6 Watchers
1 Branches
4 Contributors
Updated on Sep 04, 2023
Bundle Size
462.00 B
Minified
327.00 B
Minified + Gzipped
Sponsor this package
Package Meta Information
Latest Version
3.0.0
Package Id
source-map-to-comment@3.0.0
Size
1.52 kB
NPM Version
6.14.12
Node Version
12.22.1
Published on
Aug 09, 2021
Total Downloads
Cumulative downloads
Total Downloads
1,484,668
Last Day
17.8%
139
Compared to previous day
Last Week
15.6%
939
Compared to previous week
Last Month
-13.4%
3,646
Compared to previous month
Last Year
33.8%
58,174
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
source-map-to-comment
Convert a Source Map object to a comment
Install
$ npm install source-map-to-comment
Usage
1import sourceMapToComment from 'source-map-to-comment';
2
3const sourceMap = getSourceMapObjectFromSomething();
4
5sourceMapToComment(sourceMap);
6//=> '//# sourceMappingURL=data:application/json;base64,eyJ2Z...'
7
8sourceMapToComment(JSON.stringify(sourceMap));
9//=> '//# sourceMappingURL=data:application/json;base64,eyJ2Z...'
10
11sourceMapToComment(sourceMap, {type: 'css'});
12//=> '/*# sourceMappingURL=data:application/json;base64,eyJ2Z... */'

No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
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 3/14 approved changesets -- score normalized to 2
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/sindresorhus/source-map-to-comment/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/sindresorhus/source-map-to-comment/main.yml/main?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/main.yml:20
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/main.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
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 'main'
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
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 3 are checked with a SAST tool
Score
3.6
/10
Last Scanned on 2025-02-03
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