Gathering detailed insights and metrics for @vscode/web-custom-data
Gathering detailed insights and metrics for @vscode/web-custom-data
Gathering detailed insights and metrics for @vscode/web-custom-data
Gathering detailed insights and metrics for @vscode/web-custom-data
npm install @vscode/web-custom-data
Typescript
Module System
Node Version
99.8
Supply Chain
76.1
Quality
84.9
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
3,164,961
Last Day
2,860
Last Week
73,710
Last Month
278,578
Last Year
2,790,798
MIT License
207 Stars
150 Commits
76 Forks
24 Watchers
7 Branches
10,000 Contributors
Updated on Jan 31, 2025
Latest Version
0.4.13
Package Id
@vscode/web-custom-data@0.4.13
Unpacked Size
1.07 MB
Size
154.67 kB
File Count
5
Node Version
18.5.0
Published on
Dec 02, 2024
Cumulative downloads
Total Downloads
Last Day
18.8%
2,860
Compared to previous day
Last Week
11%
73,710
Compared to previous week
Last Month
29.4%
278,578
Compared to previous month
Last Year
650.7%
2,790,798
Compared to previous year
2
VS Code ships with rich language feature support for HTML/CSS, such as auto-completion and hover information. The core of these language support are implemented in vscode-html-languageservice and vscode-css-languageservice. In the past, these libraries were coupled to outdated schemas that define HTML/CSS entities. Custom data decouples these libraries from the data they use and allows VS Code to offer up-to-date support for latest HTML/CSS proposals or frameworks built on top of HTML/CSS.
There are two primary use cases:
html.customData
and css.customData
in your settings to let VS Code load additional HTML/CSS entities, so they would show up in auto-completion, hover information etc. See helloworld sample for an example.contributes.html.customData
or contributes.css.customData
to load Custom Data into VS Code. See vscode-mavo for an example.Take this HTML auto-completion example:
<|
vscode-html-languageservice
determines that it should provide a list of tag names, such as div
, span
, p
.vscode-html-languageservice
, so <|
completes all HTML tags described in the HTML spec.html.customData
setting and contributes.html.customData
allows you to extend this list to include your own definition of HTML tags.On the one hand, we continuously curate the data VS Code provides to the HTML/CSS language services. For example, VS Code pulls data from mdn/data and mdn/browser-compat-data to provide latest information on CSS properties' usage, syntax and browser compatibility. By continously following the latest web spec, VS Code can provide latest information & up-to-date language support for new HTML/CSS entities.
On the other hand, for users and framework authors who build new technologies and frameworks on top of HTML/CSS, custom data offers an easy way for them to add support for their custom frameworks. For example:
vscode-html-languageservice
based Language Server to provide Vue-specific auto-completions.<Major>.<Minor>
.Minor
changes are backwards compatible. Custom data that satisfies V1.X
spec would be valid according to V1.0
spec.Major
changes introduce breaking changes. Custom data that satisfies V2.X
spec would likely be invalid according to V1.0
spec.samples/helloworld
: Open this sample in VS Code and start playing with custom data.samples/svg
: A real-world sample that loads SVG-related HTML/CSS entities in VS Code.samples/webcomponents
: Use custom data to get web component editor support in HTML.octref/vscode-mavo
: Use custom data to support the Mavo framework built on top of HTML/CSS./web-data
contains the data collection pipelines and the actual data being used in the VS Code HTML extension and CSS extension. It pulls data from sources such as HTML/CSS spec and MDN and massages them into the custom data format ready to use.
yarn update-sources
, which updates @mdn/browser-compat-data
, mdn-data
and attributeRelevance.js
yarn generate-data
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
No vulnerabilities found.
Reason
all changesets reviewed
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
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 Morevscode-web-custom-data
This repository pulls data from multiple channels and massage them into the Custom Data Format. The data is then published to [vscode-web-custom-data](https://www.npmjs.com/package/vscode-web-custom-data) package and consumed in VS Code's [HTML](https://g
web-custom-data-zh
@vscode/web-custom-data ä¸æ–‡ç‰ˆ