Gathering detailed insights and metrics for pluginclerk
Gathering detailed insights and metrics for pluginclerk
Gathering detailed insights and metrics for pluginclerk
Gathering detailed insights and metrics for pluginclerk
A clerk for retrieving compatible plugins from the npm database
npm install pluginclerk
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (87.01%)
JavaScript (12.99%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
9 Stars
50 Commits
1 Watchers
1 Branches
2 Contributors
Updated on Oct 12, 2024
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
Published on
Dec 29, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A clerk for retrieving compatible plugins from the npm database
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} */
npm install --save pluginclerk
import pkg from ('pluginclerk')
const pkg = require('pluginclerk').default
1import pkg from 'https://unpkg.com/pluginclerk@^6.5.0/edition-deno/index.ts'
This package is published with the following editions:
pluginclerk/source/index.ts
is TypeScript source code with Import for modulespluginclerk
aliases pluginclerk/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 DenoDiscover the release history by heading on over to the HISTORY.md
file.
Discover how to contribute via the CONTRIBUTING.md
file.
Unless stated otherwise all works are:
and licensed under:
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
5 existing vulnerabilities detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 1
Details
Reason
Found 0/18 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
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