Joe Lanman on Nostr: missing from native Node - write a file and create any necessary folders in the path ...
missing from native Node - write a file and create any necessary folders in the path
```javascript
fs.writeFileSync('a/b/c.txt','hello', {recursive:true})
```
#nodeJS
Published at
2024-05-15 16:45:42Event JSON
{
"id": "ec6fc8517b661bae106d251a93ff4200ce04a78a13e763d559c6fe4fe80a057c",
"pubkey": "4ed1d57315dd96d05aef0a95d086ab9cb019699089635ab88ad435f301ae5757",
"created_at": 1715791542,
"kind": 1,
"tags": [
[
"proxy",
"https://hachyderm.io/@joelanman/112446114531747833",
"web"
],
[
"t",
"nodejs"
],
[
"proxy",
"https://hachyderm.io/users/joelanman/statuses/112446114531747833",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://hachyderm.io/users/joelanman/statuses/112446114531747833",
"pink.momostr"
]
],
"content": "missing from native Node - write a file and create any necessary folders in the path\n\n```javascript\nfs.writeFileSync('a/b/c.txt','hello', {recursive:true})\n```\n\n#nodeJS",
"sig": "1cab476c8c4c9f50362fbf8a5a4575725ea44e0bcb639d87746bee6c2042678de71f70f500064bef87c856286aea9f92da7844fbd8c6f334ad9421d85e3f674a"
}