strip-shebang:从字符串中删除shebang(例如#!binsh)

时间:2021-05-26 08:10:13
【文件属性】:
文件名称:strip-shebang:从字符串中删除shebang(例如#!binsh)
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-26 08:10:13
JavaScript 脱衣舞 从字符串中 (例如#!/bin/sh ) 安装 $ npm install --save strip-shebang 用法 const fs = require ( 'fs' ) ; const stripShebang = require ( 'strip-shebang' ) ; const str = fs . readFileSync ( 'bin' , 'utf8' ) ; //=> #!/usr/bin/env node //=> console.log('unicorns'); stripShebang ( str ) ; //=> //=> console.log('unicorns'); 执照 麻省理工学院:copyright:
【文件预览】:
strip-shebang-main
----.gitignore(13B)
----.github()
--------workflows()
----.gitattributes(12B)
----package.json(656B)
----readme.md(484B)
----index.js(136B)
----test.js(152B)
----.editorconfig(231B)
----license(1KB)

网友评论