New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@netlify/config

Package Overview
Dependencies
Maintainers
13
Versions
438
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netlify/config

Netlify config module

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Maintainers
13
Created
Source

Netlify Config

Library for reading netlify configuration files.

About

@netlify/config brings a wide variety of new functionality to Netlify's config ecosystem.

Including:

  • Multiple config formats
  • environment variable support
  • (Future) secret support

Environment Variable Support

To reference env variables in your config file. Use the ${} bracket notation.

${env:MY_VARIABLE_KEY_NAME}

Example

thing: ${env:MY_VAR} # <-- resolves to the environment variable MY_VAR value

Example with default value

thing: ${env:OTHER_VAR, 'my-default-value'}
#      👆 If OTHER_VAR not found, this resolves my-default-value

Formats

Currently yml, toml, and json are supported by @netlify/config

Format Examples

netlify.toml!

[build]
  publish = "dist"
  command = "npm run build"
  functions = "functions"

netlify.yml!

build:
  publish: dist
  command: npm run build
  functions: functions

netlify.json!

{
  "build": {
    "publish": "dist",
    "command": "npm run build",
    "functions": "functions"
  }
}

FAQs

Package last updated on 06 Nov 2019

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc