[{"data":1,"prerenderedAt":394,"buildId":395},["ShallowReactive",2],{"breadcrumbs:\u002Fsoftware-bill-of-materials\u002Fnode-based-projects":3,"feed:\u002Fsoftware-bill-of-materials\u002Fnode-based-projects":10,"page:\u002Fsoftware-bill-of-materials\u002Fnode-based-projects":11,"sections:\u002Fsoftware-bill-of-materials\u002Fnode-based-projects":203,"site:footer":206,"site:navigation":267,"site:settings":360},[4,7],{"to":5,"label":6},"\u002F","Eclipse Foundation Project Handbook",{"to":8,"label":9},"\u002Fsoftware-bill-of-materials\u002F","Software Bill of Materials",false,{"id":12,"title":13,"aliases":14,"body":15,"breadcrumbTitle":14,"breadcrumbs":14,"date":14,"description":26,"extension":196,"featuredFooter":14,"header":14,"keywords":14,"meta":197,"navigation":198,"path":199,"redirectUrl":14,"rssFeed":14,"seo":200,"seoTitle":14,"socialImage":14,"stem":201,"visibility":14,"width":14,"__hash__":202},"pages\u002F8.software-bill-of-materials\u002F3.node-based-projects.md","Node-based Projects",null,{"type":16,"value":17,"toc":188},"minimark",[18,23,27,30,96,100,103,158],[19,20,22],"h2",{"id":21},"node-metadata-best-practices","Node Metadata Best Practices",[24,25,26],"p",{},"The quality of the SBOMs generated by tools depends on the quality of the metadata provided by each of the modules.",[24,28,29],{},"We recommend adopting the following practices.",[31,32,33,44,88],"ul",{},[34,35,36,40,43],"li",{},[37,38,39],"strong",{},"Provide basic metadata for your modules",[41,42],"br",{},"At a minimum, specify a name and version in every module’s metadata.",[34,45,46,49,51,52,59,60,65,66,68,69,73,74,77,78],{},[37,47,48],{},"Specify the license as an SPDX identifier or expression",[41,50],{},"When the content is distributed under a single license, specify that license as an ",[53,54,58],"a",{"href":55,"rel":56},"https:\u002F\u002Fspdx.org\u002Flicenses\u002F",[57],"nofollow","SPDX identifier",". When the content is distributed under multiple licenses, specify the license as an ",[53,61,64],{"href":62,"rel":63},"https:\u002F\u002Fspdx.github.io\u002Fspdx-spec\u002Fv2.3\u002FSPDX-license-expressions\u002F",[57],"SPDX expression",".",[41,67],{},"For example, to express that content may be consumed under either the Eclipse Public License 2.0 or the GNU Public License 2.0 with the Classpath Exception (",[70,71,72],"code",{},"EPL-2.0 or GPL-2.0-only with Classpath-exception-2.0","), include the following in the ",[70,75,76],{},"package.json"," file:",[79,80,86],"pre",{"className":81,"code":83,"language":84,"meta":85},[82],"language-json","\"license\" : \"EPL-2.0 or GPL-2.0-only with Classpath-exception-2.0\"\n","json","",[70,87,83],{"__ignoreMap":85},[34,89,90,93,95],{},[37,91,92],{},"Keep your dependencies up-to-date",[41,94],{},"Keep your dependencies up-to-date and generate SBOMs regularly to maintain an accurate and comprehensive inventory of your Node package’s components and dependencies.",[19,97,99],{"id":98},"cyclonedx-sboms-from-node","CycloneDX SBOMs from Node",[24,101,102],{},"To generate an SBOM for your Node package, you can use tools specifically designed for this purpose, such as CycloneDX. Here are the general steps to generate an SBOM:",[104,105,106,137,147],"ol",{},[34,107,108,109,112,113,117,118,121,122,77,124,130,132,133,136],{},"Add the ",[70,110,111],{},"@cyclonedx\u002Fcyclonedx-npm"," module as a ",[114,115,116],"em",{},"development"," dependency and add an ",[70,119,120],{},"sbom"," script to your ",[70,123,76],{},[79,125,128],{"className":126,"code":127,"language":84,"meta":85},[82],"{\n  \"devDependencies\": {\n    \"@cyclonedx\u002Fcyclonedx-npm\": \"^1.14.1\"\n  },\n  \"scripts\": {\n    \"sbom\": \"cyclonedx-npm --output-format json --output-file sbom.json\"\n  }\n}\n",[70,129,127],{"__ignoreMap":85},[41,131],{},"This command will generate an SBOM in JSON format and save it as ",[70,134,135],{},"sbom.json"," in the current directory.",[34,138,139,140,143,144,65],{},"Install dependencies by running ",[70,141,142],{},"npm install",", or ",[70,145,146],{},"yarn",[34,148,149,150],{},"Run the following command to generate the SBOM:",[79,151,156],{"className":152,"code":154,"language":155,"meta":85},[153],"language-bash","$ npm run sbom\n","bash",[70,157,154],{"__ignoreMap":85},[159,160,161,166],"page-sidebar",{},[162,163,165],"h3",{"id":164},"in-this-chapter","In this chapter",[31,167,168,172,178,184],{},[34,169,170],{},[53,171,9],{"href":8},[34,173,174],{},[53,175,177],{"href":176},"\u002Fsoftware-bill-of-materials\u002Ffundamentals\u002F","Fundamentals",[34,179,180],{},[53,181,183],{"href":182},"\u002Fsoftware-bill-of-materials\u002Fmaven-based-java-projects\u002F","Maven-Based Java Projects",[34,185,186],{},[37,187,13],{},{"title":85,"searchDepth":189,"depth":189,"links":190},2,[191,192],{"id":21,"depth":189,"text":22},{"id":98,"depth":189,"text":99,"children":193},[194],{"id":164,"depth":195,"text":165},3,"md",{},true,"\u002Fsoftware-bill-of-materials\u002Fnode-based-projects",{"title":13,"description":26},"8.software-bill-of-materials\u002F3.node-based-projects","v4T-Jrw4szMJhQfd1aPJZFbCQHyBDviq5WYmeKUksj4",[204],{"path":205,"title":9,"visibility":14},"\u002Fsoftware-bill-of-materials",{"id":207,"backToTopText":14,"callToAction":14,"colorMode":208,"copyright":213,"description":214,"extension":215,"manageCookiesText":216,"meta":217,"sections":218,"socialsHeading":264,"stem":265,"__hash__":266},"footer\u002Fdata\u002Ffooter.yml",{"label":209,"system":210,"light":211,"dark":212},"Colour mode","System","Light","Dark","Copyright © Eclipse Foundation AISBL. All Rights Reserved.","How open source projects are proposed, run and released at the Eclipse Foundation.","yml","Manage Cookies",{},[219,232,245],{"id":220,"heading":221,"links":222},"footer-eclipse-foundation","Eclipse Foundation",[223,226,229],{"text":224,"href":225},"About","https:\u002F\u002Fwww.eclipse.org\u002Forg\u002F",{"text":227,"href":228},"Projects","https:\u002F\u002Fprojects.eclipse.org\u002F",{"text":230,"href":231},"Membership","https:\u002F\u002Fwww.eclipse.org\u002Fmembership\u002F",{"id":233,"heading":234,"showManageCookies":198,"links":235},"footer-legal","Legal",[236,239,242],{"text":237,"href":238},"Privacy Policy","https:\u002F\u002Fwww.eclipse.org\u002Flegal\u002Fprivacy\u002F",{"text":240,"href":241},"Terms of Use","https:\u002F\u002Fwww.eclipse.org\u002Flegal\u002Fterms-of-use\u002F",{"text":243,"href":244},"Code of Conduct","https:\u002F\u002Fwww.eclipse.org\u002Forg\u002Fdocuments\u002FCommunity_Code_of_Conduct.php",{"id":246,"heading":247,"links":248},"footer-site","Eclipse Project Handbook",[249,252,255,258,261],{"text":250,"href":251},"Overview","\u002Foverview\u002F",{"text":253,"href":254},"Project checklist","\u002Fproject-checklist\u002F",{"text":256,"href":257},"Glossary","\u002Fglossary\u002F",{"text":259,"href":260},"Getting help","\u002Fgetting-help\u002F",{"text":262,"href":263},"Change log","\u002Fchange-log\u002F","Follow us:","data\u002Ffooter","ZvhD6CFXH27OiD2yqB3mjl9Df8GotJScE3ITS4beP3s",{"id":268,"extension":215,"main":269,"meta":357,"stem":358,"__hash__":359},"navigation\u002Fdata\u002Fnavigation.yml",[270,282,303,325,343],{"text":271,"children":272},"Getting started",[273,274,277,280,281],{"text":250,"href":251},{"text":275,"href":276},"Starting a project","\u002Fstarting-a-project\u002F",{"text":278,"href":279},"Incubation","\u002Fincubation\u002F",{"text":253,"href":254},{"text":259,"href":260},{"text":283,"children":284},"People",[285,288,291,294,297,300],{"text":286,"href":287},"Project roles","\u002Fproject-roles\u002F",{"text":289,"href":290},"Contributing","\u002Fcontributing\u002F",{"text":292,"href":293},"Elections","\u002Felections\u002F",{"text":295,"href":296},"Committer paperwork","\u002Fcommitter-paperwork\u002F",{"text":298,"href":299},"Identity verification","\u002Fidentity-verification\u002F",{"text":301,"href":302},"Community","\u002Fcommunity\u002F",{"text":304,"children":305},"Running a project",[306,309,312,315,318,319,322],{"text":307,"href":308},"Resources and services","\u002Fproject-resources-and-services\u002F",{"text":310,"href":311},"Project Management Infrastructure","\u002Fproject-management-infrastructure\u002F",{"text":313,"href":314},"Releases and reviews","\u002Freleases-and-reviews\u002F",{"text":316,"href":317},"Vulnerabilities","\u002Fvulnerabilities\u002F",{"text":9,"href":8},{"text":320,"href":321},"Project branding","\u002Fproject-branding\u002F",{"text":323,"href":324},"Promoting your project","\u002Fpromoting-your-project\u002F",{"text":326,"children":327},"IP and legal",[328,331,334,337,340],{"text":329,"href":330},"Intellectual property","\u002Fintellectual-property\u002F",{"text":332,"href":333},"Using artificial intelligence","\u002Fartificial-intelligence\u002F",{"text":335,"href":336},"Legal documentation","\u002Flegal-documentation\u002F",{"text":338,"href":339},"Legal documentation for plug-ins","\u002Flegal-documentation-for-plug-ins\u002F",{"text":341,"href":342},"Data protection impact assessment","\u002Fdata-protection-impact-assessment\u002F",{"text":344,"children":345},"Process",[346,349,352,353,354],{"text":347,"href":348},"Eclipse Foundation Development Process","\u002Fdevelopment-process\u002F",{"text":350,"href":351},"Specifications","\u002Fspecifications\u002F",{"text":256,"href":257},{"text":262,"href":263},{"text":355,"href":356},"Notices","\u002Fnotices\u002F",{},"data\u002Fnavigation","fgy6mUpUX6VDgpStO8SkJA34CgOFyHHPtqwYQUgtSYk",{"id":361,"title":247,"assistant":362,"callForAction":14,"description":371,"extension":215,"heroImage":14,"keywords":372,"logo":376,"logoInverse":377,"logoWidth":378,"meta":379,"seoTitleSuffix":380,"socialImage":381,"socials":383,"stem":392,"__hash__":393},"settings\u002Fdata\u002Fsettings.yml",{"name":363,"intro":364,"disclaimer":365,"instructions":366,"questions":367},"Handbook assistant","Ask how things work for an Eclipse open source project: starting one, committers, releases, intellectual property. The answers come from the handbook, with links to its pages.","The handbook assistant can make mistakes and doesn't provide legal advice. Check the pages it links to.","The handbook chooses its words with care. Use its wording for the process, roles, reviews, agreements, licences and terms; quote it where precision matters, and don't paraphrase or simplify it.\nBe plain and precise. Don't speculate, don't predict the outcome of a review, an election or an IP review, and don't speak for the EMO, the IP Team, a PMC or the Eclipse Foundation beyond what the pages say.\nYou don't provide legal advice. When a question is about licensing, intellectual property, trademarks or the agreements, or asks what someone must do to comply, say first that this isn't legal advice, then give what the handbook says, and suggest they contact license@eclipse-foundation.org, as the handbook does, or a qualified legal professional.\nWhen the handbook doesn't answer a question, say so and suggest the EMO at emo@eclipse-foundation.org.\n",[368,369,370],"How do I propose a new Eclipse open source project?","How do committer elections work?","What is a release review, and when does my project need one?","How open source projects are proposed, run and released at the Eclipse Foundation: the Eclipse Development Process in practice, for committers and project leads.",[247,373,221,374,375],"Eclipse Development Process","open source projects","committers","\u002Flogo.svg","\u002Flogo-inverse.svg",140,{}," | Eclipse Project Handbook",{"backgroundImage":382,"eyebrow":247},"\u002Fsocial-image.png",[384,388],{"name":385,"icon":386,"url":387},"LinkedIn","fa6-brands:linkedin","https:\u002F\u002Fwww.linkedin.com\u002Fcompany\u002Feclipse-foundation\u002F",{"name":389,"icon":390,"url":391},"YouTube","fa6-brands:youtube","https:\u002F\u002Fwww.youtube.com\u002F@EclipseFdn","data\u002Fsettings","1y81bWZuCroo6bWBcHFO-k_z4AIvgSDeHc7Uqzsj2LM",1795617572078,"efc157c9-2c20-419c-a89d-97024324e8ad"]