functionalscript 0.0.530 → 0.0.532
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fjson/README.md +4 -1
- package/package.json +1 -1
package/fjson/README.md
CHANGED
|
@@ -9,12 +9,15 @@
|
|
|
9
9
|
|
|
10
10
|
## Next steps
|
|
11
11
|
|
|
12
|
+
- [ ] rename `fjson` to `djs` (data javascript), File extensions: `.d.cjs`, `.d.mjs`, `.d.js`.
|
|
12
13
|
- [ ] use JS tokenizer
|
|
13
14
|
- [x] identifiers `{a:5}`
|
|
14
15
|
- [x] big int
|
|
15
16
|
- [ ] `module.exports = ...`
|
|
16
17
|
- [ ] constants `const a = [3];module.exports = { a: a, b: a }`. Serialization `const _0=[3];module.exports={a:_0,b:_0}`
|
|
17
|
-
- [ ] import `const a = require('c.
|
|
18
|
+
- [ ] import `const a = require('c.d.cjs');module.exports = { a: a, b: a}`
|
|
19
|
+
- [ ] ES6 import `import a from 'c.d.mjs';export default { a: a, b: a}`
|
|
20
|
+
- [ ] short form `const a = 5;module.exports = { a }`
|
|
18
21
|
|
|
19
22
|
Optional, for fun, syntax sugar:
|
|
20
23
|
|