@u7/it
v0.0.7
Published
i18n translate file
Downloads
1
Readme
@u7/it
i18n translate file
like NestedText , but tiny
安装
推荐用 @antfu/ni
ni -D @u7/it
使用
#!/usr/bin/env coffee
> @u7/it > dumps loads
txt = dumps {
x : 'a'
y :
c : 'b'
'a : 1': 2
e : """Mosh
(mobile shell)
Remote terminal application that allows roaming, supports intermittent connectivity, and provides intelligent local echo and line editing of user keystrokes.
Mosh is a replacement for interactive SSH terminals. It's more robust and responsive, especially over Wi-Fi, cellular, and long-distance links.
Mosh is free software, available for GNU/Linux, BSD, macOS, Solaris, Android, Chrome, and iOS."""
}
console.log txt
console.log '\n---\n'
o = loads txt
console.log o
console.log '\n---\n'
console.log txt == dumps (o)
输出
x : a
y :
c : b
a : 1 |
2
e |
Mosh
(mobile shell)
Remote terminal application that allows roaming, supports intermittent connectivity, and provides intelligent local echo and line editing of user keystrokes.
Mosh is a replacement for interactive SSH terminals. It's more robust and responsive, especially over Wi-Fi, cellular, and long-distance links.
Mosh is free software, available for GNU/Linux, BSD, macOS, Solaris, Android, Chrome, and iOS.
a :
j : 2
x :
f : 5
g : 6
f : 3
---
{
x: 'a',
y: {
c: 'b',
'a : 1': '2',
e: 'Mosh\n' +
'(mobile shell)\n' +
'Remote terminal application that allows roaming, supports intermittent connectivity, and provides intelligent local echo and line editing of user keystrokes.\n' +
'\n' +
"Mosh is a replacement for interactive SSH terminals. It's more robust and responsive, especially over Wi-Fi, cellular, and long-distance links.\n" +
'\n' +
'Mosh is free software, available for GNU/Linux, BSD, macOS, Solaris, Android, Chrome, and iOS.',
a: { j: '2', x: [Object] }
},
f: '3'
}
---
true