微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

strman

编程之家收集整理的这个编程导航主要介绍了strman编程之家,现在分享给大家,也给大家做个参考。

strman 介绍

strman一个针对 JavaScript 字符串的操作库,包含各种各样的字符串操作 

npm/yarn安装

npm install strman --save

yarn add strman

 strman使用

//With ES6/import

import { slugify } from 'strman'

const title = "A JavaScript string manipulation library.";

slugify(title);

// => "a-JavaScript-string-manipulation-library"

//With require

const slugify = require('strman').slugify;

const title = 'A JavaScript string manipulation library.'

slugify(title)

// => "a-JavaScript-string-manipulation-library"

网站地址:https://dleitee.github.io/strman/

GitHub:https://github.com/dleitee/strman

网站描述:一个Javascript字符串操作库

strman

官方网站:https://dleitee.github.io/strman/

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。