🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

ejson-mark

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ejson-mark

a easy light and quickly markup lang

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

ejson-mark

ejson is a new markup language by ls.
It's easily, light and quickly.
ExampleTest/main.ejson :

hello : hello
# This is a line of comments
# hello is a string
world : "world"
# of course, u can also use " to represent a string
array : @Test/array.ejson
# include a file as var array

ExampleTest/array.ejson :

hello
"world"

Script exampleTest/index.ls :

{ ejson } = require "../ejson"
# Test Parse
json = ejson.toJSON "./Test/main.ejson", 0, 4
# u can use ejson.parse to parse ejson to js object
console.log json

# Test stringify
ejson.stringify { json : json }, "./Test/testout.ejson"

run :

{
    "hello": "hello",
    "world": "world",
    "array": [
        "hello",
        "world"
    ]
}

Keywords

json

FAQs

Package last updated on 17 Aug 2024

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