New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

yamore

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yamore

A simple preprocessor that adds more functionality to YAML in the form of preprocessing.

latest
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

yamore

npm version

A simple preprocessor that adds more functionality to YAML in the form of preprocessing.

usage

// .github/process.js
import fs from 'node:fs/promises'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import { transformFile } from 'yamore'

const baseDir = path.dirname(fileURLToPath(import.meta.url))
const templatesDir = path.join(baseDir, 'workflow-templates')
const outDir = path.join(baseDir, 'workflows')

for (const template of await fs.readdir(templatesDir)) {
  if (!template.endsWith('.yml')) continue
  console.log(`🤔 processing ${template}...`)
  transformFile(path.join(templatesDir, template), path.join(outDir, template))
  console.log(`✅ processed ${template}!`)
}

FAQs

Package last updated on 20 Jul 2023

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