在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):reflog/gulp-jsoncombine开源软件地址(OpenSource Url):https://github.com/reflog/gulp-jsoncombine开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):gulp-jsoncombine
UsageFirst, install npm install --save-dev gulp-jsoncombine Then, add it to your ** This plugin will collect all the json files provided to it, parse them, put them in a dictionary where the keys of that dictionary are the filenames (sans the '.json' suffix) and pass that to a processor function. That function decides how that output should look in the resulting file. ** var jsoncombine = require("gulp-jsoncombine");
gulp.src("./src/*.json")
.pipe(jsoncombine("result.js",function(data, meta){...}))
.pipe(gulp.dest("./dist")); APIjsoncombine(fileName, processor)fileNameType: The output filename processorType: The processor function will be called with two dictionaries holding the same set of keys. The keys are the filename sans the The first dictionary maps the filename to the string contents of the file. The second dictionary maps to a meta object containing the following keys:
The function should return a new License |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论