JavaScriptJS
No reviews yet
allow kubejs write js file
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
Install on the client or the server — either alone gives full functionality.
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
English
Added the following to KubeJS's JsonIO:
writeAndCreateDirectories- Creates parent directories when writing a JSON filefindJsonInDirectory- Can be used to find paths of all JSON files in a directoryread(path,reader)- Get all files under the path directory and execute thereaderfunction.reader:(path,file,json)=>{}
Added JSIO:
getAllowSuffix- Check allowed file suffixes for operationsread- Read a file and return aList<String>exists- Check if a file existswrite- Write to a file and create parent directoriesdelete- Delete a filefindJSInDirectory- Can be used to find paths of all JS files in a directory
中文
向KubeJS的JsonIO里面添加了
writeAndCreateDirectories- 在写json文件的时候创建其所属的文件夹findJsonInDirectory- 可以查询一个目录下面的所有json文件的路径read(path,reader)- 获取path文件夹下面的全部文件,并执行reader函数reader:(path,file,json)=>{}
添加了JSIO
getAllowSuffix- 查询允许操作的文件后缀名read- 读取一个文件返回List<String>exists- 检测一个文件是否存在write- 写入一个文件,并创建其所属的文件夹delete- 删除文件findJSInDirectory- 可以查询一个目录下面的所有js文件的路径
English
Added the following to KubeJS's JsonIO:
writeAndCreateDirectories- Creates parent directories when writing a JSON filefindJsonInDirectory- Can be used to find paths of all JSON files in a directory
Added JSIO:
getAllowSuffix- Check allowed file suffixes for operationsread- Read a file and return aList<String>exists- Check if a file existswrite- Write to a file and create parent directoriesdelete- Delete a filefindJSInDirectory- Can be used to find paths of all JS files in a directory
中文
向KubeJS的JsonIO里面添加了
writeAndCreateDirectories- 在写json文件的时候创建其所属的文件夹findJsonInDirectory- 可以查询一个目录下面的所有json文件的路径
添加了JSIO
getAllowSuffix- 查询允许操作的文件后缀名read- 读取一个文件返回List<String>exists- 检测一个文件是否存在write- 写入一个文件,并创建其所属的文件夹delete- 删除文件findJSInDirectory- 可以查询一个目录下面的所有js文件的路径
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources