fx 36.0.0 → 36.0.2

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.
Files changed (2) hide show
  1. package/index.js +8 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -249,6 +249,14 @@ async function run(json, code) {
249
249
  fs.writeFileSync(globalThis.__file__, JSON.stringify(x, null, 2))
250
250
  return x
251
251
  }
252
+
253
+ function toBase64(x) {
254
+ return Buffer.from(x).toString('base64')
255
+ }
256
+
257
+ function fromBase64(x) {
258
+ return Buffer.from(x, 'base64').toString()
259
+ }
252
260
  }
253
261
 
254
262
  async function read(fd = 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fx",
3
- "version": "36.0.0",
3
+ "version": "36.0.2",
4
4
  "bin": {
5
5
  "fx": "index.js"
6
6
  },