Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

codemeta-tools

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codemeta-tools

A set of tools to play with software metadata.

  • 1.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

codemeta-tools

A set of tools to support the creation of metadata files (including but not limited to codemeta.json files) for software.

Installation

Node.js (>= 18) + npm

npm install codemeta-tools
import {validate} from "codemeta-tools";

validate({
    "@context": "https://w3id.org/codemeta/3.0",
    "type": "SoftwareSourceCode",
    "license": "https://spdx.org/licenses/AGPL-3.0-or-later",
    "name": "codemeta-tools"
});

Browser bundle

The npm package includes bundled code in ./dist/codemeta-tools.bundle.js which can be loaded as an ES Module.

You can also load it using jsDelivr CDN, like in the example below.

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script type="module">
  import {
    validate
  } from "https://cdn.jsdelivr.net/npm/codemeta-tools@[VERSION]/dist/codemeta-tools.bundle.js/+esm";

  validate(/* {...} */)
</script>
</body>
</html>

Run locally

Install dependencies:

npm install

Run tests:

npm run test 

Publish:

npm version [version]
npm publish

Authors

  • @hjonin

License

AGPL-3.0-or-later

FAQs

Package last updated on 04 Oct 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc