
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
cirru-json
Advanced tools
Converter between Cirru and JSON.
Installation:
npm install --save cirru-json
Grammar of config files:
/^-?\d+(\.\d+)?$/:str or ":string with spaces"(array 1 (string 1)), ([] 1 2)(map (:a 1))#null#lambda#true, #false#undefinedRead about Cirru interpreter for more: https://github.com/Cirru/interpreter#compact-literal-syntax
Demo:
map
:number 1
:string :2
:null #null
:bool #false
:lambda #lambda
:array $ array 1 2 3
:mixed-arrat $ array 1 :2 3
:empty-map $ map
:map $ map (:a 1)
:map2 $ map $ :a 2
:nested-map $ map
:a $ array 1 2 3
:b $ map (:a 2) (:b 3)
Use in CoffeeScript(Shelljs is not required, but better for demo):
require 'shelljs/global'
cirruCode = cat 'config.cirru'
{parse, generate} = require 'cirru-json'
# this is parser
jsonData = parse cirruCode
# this os generator
convertBack = generate jsonData
node-dev test.coffee
MIT
FAQs
Convert between Cirru and JSON
The npm package cirru-json receives a total of 13 weekly downloads. As such, cirru-json popularity was classified as not popular.
We found that cirru-json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.