【文件属性】:
文件名称:strip-outer:从字符串的开头删除子字符串
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-26 08:02:13
JavaScript
带外
从字符串的开头/结尾去除子字符串
安装
$ npm install strip-outer
用法
const stripOuter = require ( 'strip-outer' ) ;
stripOuter ( 'foobarfoo' , 'foo' ) ;
//=> 'bar'
stripOuter ( 'unicorncake' , 'unicorn' ) ;
//=> 'cake'
执照
麻省理工学院:copyright:
【文件预览】:
strip-outer-main
----index.js(353B)
----test.js(149B)
----package.json(678B)
----readme.md(337B)
----.github()
--------workflows()
----license(1KB)
----.gitignore(23B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitattributes(29B)