obj-str:一个很小的(96B)库,用于将对象值序列化为字符串

时间:2021-05-03 04:45:21
【文件属性】:
文件名称:obj-str:一个很小的(96B)库,用于将对象值序列化为字符串
文件大小:19KB
文件格式:ZIP
更新时间:2021-05-03 04:45:21
JavaScript obj-str 一个很小的(96B)库,用于将Object值序列化为String。 该模块的预期用途是将具有CSS类名称(作为键)的Object转换为以空格分隔的className字符串。 其他模块具有相似的目标(例如 ),但是obj-str只做一件事。 这就是为什么仅压缩100个字节的原因! PS:之所以做,是因为,因此我想快速进行替换。 安装 $ npm install --save obj-str 用法 import objstr from 'obj-str' ; objstr ( { foo : true , bar : false , baz : isTrue ( ) } ) ; //=> 'foo baz' React 使用React(或任何类似React的库!),您可以利用任何props或state值来将条件类表示为对象。 import React from 'rea
【文件预览】:
obj-str-master
----package.json(915B)
----readme.md(3KB)
----.github()
--------FUNDING.yml(15B)
--------workflows()
----test()
--------index.js(1KB)
--------babel.js(1KB)
--------fixtures()
----license(1KB)
----babel-plugin-optimize-obj-str()
--------index.js(4KB)
--------package.json(640B)
--------readme.md(5KB)
----src()
--------index.js(141B)
----index.d.ts(62B)
----.gitignore(51B)
----.editorconfig(242B)

网友评论