Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@standardnotes/community-cdn

Package Overview
Dependencies
Maintainers
5
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@standardnotes/community-cdn

latest
npmnpm
Version
0.15.12
Version published
Maintainers
5
Created
Source

import path from 'path' import { fileURLToPath } from 'url' import { readJson, readFile, writeFile } from '../../scripts/ScriptUtils.mjs'

const __filename = fileURLToPath(import.meta.url) const __dirname = path.dirname(__filename) const ROOT = path.join(__dirname, '../..')

export function writePackageDirectoryToReadme() { const packageEntries = readJson(path.join(ROOT, 'cdn/dist/packages.json')) const packages = Object.values(packageEntries)

const template = readFile(path.join(ROOT, 'readme.template.md'))

const DirectoryPlaceholder = ''

let directoryString = `` directoryString += '| Name | Publisher | Install Link |' directoryString += '\n' directoryString += '|------|-----------|--------------|'

for (const packageEntry of packages) { let string = '|' string += ${packageEntry.name} string += '|' string += ${packageEntry.publisher} string += '|' string += ${packageEntry.latest_url} string += '|' directoryString += '\n'

directoryString += string

}

const result = template.replace(DirectoryPlaceholder, directoryString)

writeFile(result, path.join(ROOT, 'README.md'))

console.log('Wrote README file', result) }

FAQs

Package last updated on 13 Sep 2025

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