Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/aiscript-dev/aiscript
/ gen-pkg-ts.mjs
File
gen-pkg-ts.mjs
scripts/gen-pkg-ts.mjs:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ readFile, writeFile } from
'node:fs/promises'
;
2
3
const
pkg = JSON.parse((
await
readFile(
'./package.json'
,
'utf8'
)));
4
await
writeFile(
'./src/pkg.ts'
,
Callers
nothing calls this directly
Calls
2
stringify
Method · 0.80
parse
Method · 0.45
Tested by
no test coverage detected