Socket
Book a DemoInstallSign in
Socket

arc-config

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arc-config

Some config file format I made.

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

arc-config

My own config file format. Object oriented and easy to read.

NPM

Node.js Version Build status Coverage Status License

USAGE

npm install arc-config

let config = require("arc-config").decode(`
# Comments start with a '#'

key value # Keys and values are seperated by spaces

objects are amazing
objects.have properties
objects."are awesome." yes
objects."also have brackets".{
    totally my dude
}
objects.can_also_contain_arrays.[
    totally
    my dude
]
`);

console.log(util.inspect(config));

Output:

{
    'key': 'value',
    'objects': {
        '_root': 'are amazing',
        'have': 'properties',
        'are awesome.': true,
        'also have brackets': {
            'totally': "my dude"
        },
        'can_also_contain_arrays': [
            "totally"
            "my dude"
        ]
    }
}

Keywords

format

FAQs

Package last updated on 06 Oct 2021

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