New:Socket for Asana Is Now Available.Learn more
Get Started

@deepseek-ai/cordis-plugin-include

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deepseek-ai/cordis-plugin-include

Include files in cordis configurations

latest
Source
npmnpm
Version
1.0.7
Version published
Weekly downloads
266K
-28.58%
Maintainers
2
Weekly downloads
 
Created
Source

@cordisjs/plugin-include

File-backed loader tree for Cordis. The include plugin reads a YAML or JSON file, turns it into loader entries, and writes updates back when the file is writable.

Usage

import { Context } from 'cordis'
import Loader from '@cordisjs/plugin-loader'
import Include from '@cordisjs/plugin-include'

const root = new Context()
await root.plugin(Loader, { baseUrl: import.meta.url })
await root.plugin(Include, {
  path: './cordis.yml',
  initial: [],
  enableLogs: true,
})

Example cordis.yml:

- id: timer
  name: '@cordisjs/plugin-timer'
- id: app
  name: ./plugins/app
  config:
    message: hello

Config

FieldDescription
pathYAML or JSON file path resolved from ctx.baseUrl.
initialEntry list written when the file is missing.
patchesRuntime patches applied after reading the file.
enableLogsEnables loader apply, reload, and unload logs.

Patches can insert entries or override fields on entries with a matching id.

FAQs

Package last updated on 30 Aug 2026

Related posts