Socket
Socket
Sign inDemoInstall

@platformatic/metaconfig

Package Overview
Dependencies
6
Maintainers
6
Versions
128
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @platformatic/metaconfig

Manage mulitple configuration versions at the same time


Version published
Maintainers
6
Install size
1.14 MB
Created

Readme

Source

@platformatic/metaconfig

Utility module to migrate between one version of Platformatic to another.

Install

npm install @platformatic/metaconfig

Usage

import { analyze, write, upgrade } from '@platformatic/metaconfig'

const meta = await analyze({ file: 'path/to/platformatic.db.json' }))

console.log(meta.version)
console.log(meta.kind)
console.log(meta.config)
console.log(meta.path)

// Bring it to the latest version
const metaNext = upgrade(meta)

console.log(metaNext.version)
console.log(metaNext.kind)
console.log(metaNext.config)
console.log(metaNext.path)

// this will override the old config
await write(metaNext)

License

Apache 2.0

FAQs

Last updated on 13 Mar 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc