Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

enis

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enis

configuration without all of the pee.

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Enis

some sort of configuration thing.

Example

this:

shared_database_config {
  database_server -> 'localhost'
  database_port -> 4032,
  database_user -> 'root',
  database_password -> 'powpow'
}

dev <- shared_database_config {
  database_name -> 'dev'
}

stage <- shared_database_config {
  database_server -> 'stage-server'
  database_name -> 'stage'
  database_password -> 'onlyonepow'
}

turns into a JSON object that looks like:

{
  "shared_database_config": {
    "database_server": "localhost",
    "database_port": 4032,
    "database_user": "root",
    "database_password": "powpow"
  },
  "dev": {
    "database_server": "localhost",
    "database_port": 4032,
    "database_name": "dev",
    "database_user": "root",
    "database_password": "powpow"
  },
  "stage": {
    "database_server": "stage-server",
    "database_port": 4032,
    "database_name": "stage",
    "database_user": "root",
    "database_password": "onlyonepow"
  }
}

This is the dumbest thing i've ever seen

yeah.

What's so special about this?

here are a few things:

  • trailing whitespace in a config file? ERROR!@!!!!
  • inherit properties from other objects
  • want to override an inherited property with a different type? NOT GOING TO HAPPEN, BUDDY!! THATS AN ERROR!
  • 5 types:
    • integers
    • boolean
    • strings (single quoted)
    • references (to other top level blocks)
    • blocks (can contain properties)

that's basically it... it's nothing special

Install

npm i enis

Usage

enis = require 'enis'

result = enis.compile """
  pow {
    pow -> 'pow'
    whammy -> {
      number -> 123
    }
  }
  """

Anything else?

I'm sure there are tons of bugs...

FAQs

Package last updated on 22 Aug 2013

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