Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@nexssp/config

nexssp4MIT1.0.9

Config for not only Nexss Programmer

programming, programmer, config, helper, nexss

readme

@nexssp/config

Config for not only the Nexss Programmer.

Note

This Nexss Programmer's plugin is the effect of the refactoring the Nexss Programmer @nexssp/cli which development has been started in 2018. This module can be used also separately without the Nexss Programmer.

const nexssConfig = require('@nexssp/config')

const config1 = nexssConfig({ type: 'yaml' }) //type can be yaml or json
//find the closest file from current folder, search all parent folders until finds it
const configPath = config1.findParent('_nexss.yml')

// if configPath is not specified, the found one fill be used. findParent is used implicitly
// configPath is optional
config1.save({ myfile: 1, nest: [1, 2] }, configPath)

const configObj = config1.load(configPath)