1px 中文文档教程
1px
一个 1 像素的透明图像。
Install
$ npm install 1px
Example
var px = require("1px");
console.log( px.gif ); // "data:image/gif;base64,R0lGODlhAQABAI..."
console.log( px.png ); // "data:image/png;base64,iVBORw0KGgoAAA..."
console.log( "1px data is %s", px ); // return 1 pixel transparent gif
用于 JSX。
<img src={px} />
License
根据麻省理工学院许可证获得许可。
版权所有 (c) 2014 Yosuke Kumakura
特此免费授予任何人许可 获取此软件和相关文档的副本 文件(“软件”),在没有处理软件 限制,包括但不限于使用权, 复制、修改、合并、发布、分发、再许可和/或出售 该软件的副本,并允许那些人 为此提供软件,但须满足以下条件 条件:
以上版权声明和本许可声明为 包含在软件的所有副本或重要部分中。
本软件“按原样”提供,不提供任何形式的保证, 明示或暗示的,包括但不限于保证 适销性,适用于特定用途和 非侵权。 在任何情况下,作者或版权均不得 持有人应对任何索赔、损害或其他责任负责, 无论是在合同、侵权或其他方面的诉讼中, 来自、不属于或与软件有关或使用或 软件中的其他交易。
1px
A 1 pixel transparent image.
Install
$ npm install 1px
Example
var px = require("1px");
console.log( px.gif ); // "data:image/gif;base64,R0lGODlhAQABAI..."
console.log( px.png ); // "data:image/png;base64,iVBORw0KGgoAAA..."
console.log( "1px data is %s", px ); // return 1 pixel transparent gif
for JSX.
<img src={px} />
License
Licensed under the MIT License.
Copyright (c) 2014 Yosuke Kumakura
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.