Comments (2)
Thank you, It's the data stored by pinia, a vue3 project
from j-toml.
It seems you need all tables be section?
You can mark the value before you stringify:
function markAllTableAsSection (value) {
if ( Object.prototype.toString.call(value)==='[object Object]' && !TOML.isSection(value) ) {
TOML.Section(value);
Object.values(value).forEach(markAllTableAsSection);
}
}
markAllTableAsSection(settingStore.setting);
BTW: if you parse the toml file by using parser of this lib, the parsed table will auto remember the style you written. Your settingStore
is a third-party reactive copy?
from j-toml.
Related Issues (20)
- v1.16.0 breaks bundled javascript HOT 5
- use in browser HOT 2
- Safari crashes with SyntaxError HOT 1
- How can I define custom typescript type for parsed data? HOT 1
- [feature?] Multiline in stringify HOT 4
- [Feature] Option to use double quotes for strings HOT 1
- Section equivalent for arrays? HOT 4
- Logical nullish assignment (??=) is not supported in Node <15 HOT 1
- Controlling spaces in list output HOT 6
- Configure double quotes or single quotes output HOT 5
- Status of Single-line and Multiline Comments HOT 5
- Stringify of the same JSON created via parse does not produce a valid TOML back HOT 6
- Can't Parse a Stringified example. HOT 2
- bug: npm bundle is invalid with version 1.35.0 HOT 3
- Cannot use with Cypress - requires es2019 or lower? HOT 2
- NULL prototype thing causes trouble HOT 1
- Maintain "style" HOT 2
- 使用的时候遇到了一个报错 HOT 1
- https://www.longtengdao.com/ is down HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from j-toml.