@3-/nt

0.1.3 • Public • Published

@3-/nt

test/main.coffee :

#!/usr/bin/env coffee

> @3-/nt/loads.js
  @3-/nt/dumps.js

# li = loads '''
# # t1
# a:
#   # t2
#   b:
#     c: 1
#     # t3
#     d: 2
#   x: 3
#   y:
#     - m
#     - n
# e:
#   f:
#     > 123
#     > 456
# '''
# console.log dumps li

li = loads '''
cnameFlatten:
  - i18n.site
    - i18n.site.a.bdydns.com/user0.cf
  - 3ti.site
    - 3ti.site.s2-web.dogedns.com/u-01.eu.org
'''
console.log JSON.stringify(li,null,2)
# en:
#  zh :
#   - a: b
#   -
#     c: d
#     e: f

# li = loads '''
# - a
# - b
# '''
# console.log dumps li
#
# li = loads '''
# a:
#   > 123
#   > 235
# b:
#   > 123
#   > 235
# '''
# console.log dumps li

output :

{
  "cnameFlatten": [
    [
      "i18n.site",
      [
        "i18n.site.a.bdydns.com/user0.cf"
      ]
    ],
    [
      "3ti.site",
      [
        "3ti.site.s2-web.dogedns.com/u-01.eu.org"
      ]
    ]
  ]
}

About This Project

This project is an open-source component of i18n.site ⋅ Internationalization Solution.

关于本项目

本项目为 i18n.site ⋅ 国际化解决方案 的开源组件。

Readme

Keywords

none

Package Sidebar

Install

npm i @3-/nt

Weekly Downloads

0

Version

0.1.3

License

Apache-2.0

Unpacked Size

6.83 kB

Total Files

7

Last publish

Collaborators

  • i18n-now