Installations
npm install pluginclerk
Developer Guide
Typescript
Yes
Module System
ESM
Min. Node Version
>=18
Node Version
20.10.0
NPM Version
10.2.3
Score
73.5
Supply Chain
96
Quality
76.2
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (87.01%)
JavaScript (12.99%)
Developer
bevry
Download Statistics
Total Downloads
12,768
Last Day
2
Last Week
32
Last Month
115
Last Year
897
GitHub Statistics
9 Stars
50 Commits
2 Watching
1 Branches
2 Contributors
Bundle Size
7.10 kB
Minified
2.69 kB
Minified + Gzipped
Sponsor this package
Package Meta Information
Latest Version
6.5.0
Package Id
pluginclerk@6.5.0
Unpacked Size
100.17 kB
Size
19.93 kB
File Count
14
NPM Version
10.2.3
Node Version
20.10.0
Publised On
29 Dec 2023
Total Downloads
Cumulative downloads
Total Downloads
12,768
Last day
-93.9%
2
Compared to previous day
Last week
-37.3%
32
Compared to previous week
Last month
79.7%
115
Compared to previous month
Last year
-69.4%
897
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
pluginclerk
A clerk for retrieving compatible plugins from the npm database
Usage
1import PluginClerk from 'pluginclerk' 2 3// Create the new clerk instance with our configuration 4const clerk = new PluginClerk({ 5 // Required: The keyword that must be specified inside the plugin's package.json:keywords property 6 keyword: 'docpad-plugin', 7 8 // Optional: A prefix that the name of the plugin must be prefixed by to be valid 9 // Defaults to nothing 10 prefix: 'docpad-plugin-', 11 12 // Optional: A function used for logging receives the arguments (logLevel, ...message) 13 // Defaults to nothing 14 log: console.log, 15 16 // Optional: The amount of milliseconds until we have to query the npm database again 17 // Defaults to one day 18 cacheDuration: null, 19 20 // Optional: The registry hostname we should use for the API calls 21 // Defaults to "https://registry.npmjs.org" 22 registryHostname: null, 23}) 24 25// Fetch the latest version of a particular plugin 26// Note the `installPeers` result, 27// as `docpad-plugin-eco` has the peerDependency `docpad`, 28// and no dependencies where supplied, it should be installed 29clerk 30 .fetchPlugin({ name: 'docpad-plugin-eco' }) 31 .then(console.log) 32 .catch(console.error) 33 34/* { 35 success: true, 36 message: 'Successfully fetched the latest and compatible version of the plugin docpad-plugin-eco', 37 skippedVersions: {}, 38 latestVersion: '2.1.0', 39 installVersion: '2.1.0', 40 installPeers: [ 'docpad' ] 41} */ 42 43// Fetch the latest version of a particular plugin that is compatible with the specified dependencies 44// Note the `installPeers` result, 45// as `docpad-plugin-eco` has the peerDependency `docpad`, 46// and we supplied it, there is no need to install it 47clerk 48 .fetchPlugin({ 49 name: 'docpad-plugin-eco', 50 requirements: { docpad: '6.78.0' }, 51 }) 52 .then(console.log) 53 .catch(console.error) 54 55/* { 56 success: true, 57 message: 'Successfully fetched the latest and compatible version of the plugin docpad-plugin-eco', 58 skippedVersions: {}, 59 latestVersion: '2.1.0', 60 installVersion: '2.1.0', 61 installPeers: [ ] 62} */ 63 64// Fetch the latest version of a particular plugin that is compatible with the specified dependencies 65// Note the `installVersion` and `skippedVersions` results, 66// a few plugin versions where skipped because they required a `docpad` version range that our supplied `docpad` version didn't fulfill 67// Note the `installPeers` result, 68// as `docpad-plugin-eco` has the peerDependency `docpad`, and we supplied it, there is no need to install it 69clerk 70 .fetchPlugin({ 71 name: 'docpad-plugin-eco', 72 requirements: { docpad: '5.0.0' }, 73 }) 74 .then(console.log) 75 .catch(console.error) 76 77/* ] { 78 success: true, 79 message: 'Successfully fetched an older and compatible version of the plugin docpad-plugin-eco', 80 skippedVersions: { 81 '2.1.0': { docpad: '^6.59.0' } 82 '2.0.0': { docpad: '^6.53.0' } 83 }, 84 latestVersion: '2.1.0', 85 installVersion: '1.0.0', 86 installPeers: [] } 87} */ 88 89// You can also fetch all plugins with some basic information 90clerk.fetchPlugins({}).then(console.log).catch(console.error) 91 92/* { 93 success: true, 94 message: 'Successfully fetched the plugins', 95 plugins: { 96 'docpad-plugin-eco': { 97 'description': '...', 98 'homepage': '...', 99 'version': '2.1.0' 100 } 101 } 102} */ 103 104// You can also fetch all plugins with their compatibility information 105clerk 106 .fetchPlugins({ requirements: { docpad: '5.0.0' } }) 107 .then(console.log) 108 .catch(console.error) 109 110/* { 111 success: true, 112 message: 'Successfully fetched the plugins', 113 plugins: { 114 'docpad-plugin-eco': { 115 'description': '...', 116 'homepage': '...', 117 'version': '1.0.0', 118 'compatibility': {} // result of fetchPlugin 119 } 120 } 121} */
Install
npm
- Install:
npm install --save pluginclerk
- Import:
import pkg from ('pluginclerk')
- Require:
const pkg = require('pluginclerk').default
Deno
1import pkg from 'https://unpkg.com/pluginclerk@^6.5.0/edition-deno/index.ts'
Editions
This package is published with the following editions:
pluginclerk/source/index.ts
is TypeScript source code with Import for modulespluginclerk
aliasespluginclerk/edition-es2022/index.js
pluginclerk/edition-es2022/index.js
is TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Require for modulespluginclerk/edition-es2022-esm/index.js
is TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Import for modulespluginclerk/edition-types/index.d.ts
is TypeScript compiled Types with Import for modulespluginclerk/edition-deno/index.ts
is TypeScript source code made to be compatible with Deno
History
Discover the release history by heading on over to the HISTORY.md
file.
Backers
Code
Discover how to contribute via the CONTRIBUTING.md
file.
Authors
- 2015+ Benjamin Lupton — Accelerating collaborative wisdom.
Maintainers
- Benjamin Lupton — Accelerating collaborative wisdom.
Contributors
Finances
Sponsors
- Andrew Nesbitt — Software engineer and researcher
- Balsa — We're Balsa, and we're building tools for builders.
- Codecov — Empower developers with tools to improve code quality and testing.
- Poonacha Medappa
- Rob Morris
- Sentry — Real-time crash reporting for your web apps, mobile apps, and games.
- Syntax — Syntax Podcast
Donors
- Andrew Nesbitt
- Armen Mkrtchian
- Balsa
- Chad
- Codecov
- dr.dimitru
- Elliott Ditman
- entroniq
- GitHub
- Hunter Beast
- Jean-Luc Geering
- Michael Duane Mooring
- Michael Harry Scepaniak
- Mohammed Shah
- Mr. Henry
- Nermal
- Pleo
- Poonacha Medappa
- Rob Morris
- Robert de Forest
- Sentry
- ServieJS
- Skunk Team
- Syntax
- WriterJohnBuck
License
Unless stated otherwise all works are:
- Copyright © 2015+ Benjamin Lupton
and licensed under:
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
security policy file detected
Details
- Info: security policy file detected: SECURITY.md:1
- Info: Found linked content: SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1
- Info: Found text in security policy: SECURITY.md:1
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE.md:0
- Warn: project license file does not contain an FSF or OSI license.
Reason
2 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
Reason
SAST tool is not run on all commits -- score normalized to 5
Details
- Warn: 7 commits out of 12 are checked with a SAST tool
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/18 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bevry.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/pluginclerk/bevry.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/bevry.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/pluginclerk/bevry.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bevry.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/pluginclerk/bevry.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/bevry.yml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/pluginclerk/bevry.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/bevry.yml:73: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/pluginclerk/bevry.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bevry.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/pluginclerk/bevry.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/bevry.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/pluginclerk/bevry.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bevry.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/pluginclerk/bevry.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bevry.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/pluginclerk/bevry.yml/master?enable=pin
- Info: 0 out of 5 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 4 third-party GitHubAction dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/bevry.yml:79
- Warn: no topLevel permission defined: .github/workflows/bevry.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
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
4.2
/10
Last Scanned on 2025-01-27
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