检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:张文豪 Zhang Wenhao(Faculty of Big Data and Computing,Guangdong Baiyun University,Guangzhou 510450,China)
机构地区:[1]广东白云学院大数据与计算机学院,广州510450
出 处:《现代计算机》2023年第14期109-112,共4页Modern Computer
摘 要:为了给前端项目构建的代码文件添加版权信息,设计一个工具来自动完成,并可以提高工作效率。基于NodeJs包管理器NPM开发一个命令行工具,从package.json文件获取与作者相关的信息来生成版权信息,再扫描前端代码目标目录下的所有代码文件并自动将生成的版权信息添加到代码文件顶部。最后通过实际应用的结果表明,采用该方法设计的命令行工具简单易用,可以满足自动在代码文件顶部添加版权信息的需求。In order to add copyright information to the code files built by the front-end project,designing a tool to complete it automatically and improve work efficiency.Developing a command line tool based on the NodeJs package manager NPM,obtain information related to the author from the package.json file to generate copyright information,and finally scan all code files in the target directory of the front-end code and automatically add the generated copyright information to the code file top.Finally,the results of practical application show that the command line tool designed by this method is simple and easy to use,and can meet the requirement of automatically adding copyright information at the top of the code file.
关 键 词:NodeJs NPM NPX GitHub WORKFLOW 版权
分 类 号:TP311.52[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.90