@nexssp/config

1.0.9 • Public • Published

@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)

/@nexssp/config/

    Package Sidebar

    Install

    npm i @nexssp/config

    Homepage

    nexss.com

    Weekly Downloads

    8

    Version

    1.0.9

    License

    MIT

    Unpacked Size

    9.99 kB

    Total Files

    12

    Last publish

    Collaborators

    • nexss