Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

string-cut

honeo22MIT1.0.1

文字列から指定した部分を削除して返す

readme

string-cut

honeo/string-cut
string-cut

なにこれ

文字列から指定した部分を削除して返す。

使い方

$ npm i -S string-cut
import cut from 'string-cut';

cut('foobar', 'oo');
> "fbar"

cut('hogehoge', /g/g);
> "hoehoe"

prototype拡張

ご利用は計画的に。

import 'string-cut/register';

'hogefugapiyo'.cut('fuga');
> "hogepiyo"