14 Star 59 Fork 2

sosnail / sosnail

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
                                             ___      
                                         __ /\_ \     
  ____    ___     ____    ___      __   /\_\\//\ \    
 /',__\  / __`\  /',__\ /' _ `\  /'__`\ \/\ \ \ \ \   
/\__, `\/\ \L\ \/\__, `\/\ \/\ \/\ \L\.\_\ \ \ \_\ \_
\/\____/\ \____/\/\____/\ \_\ \_\ \__/.\_\\ \_\/\____\
 \/___/  \/___/  \/___/  \/_/\/_/\/__/\/_/ \/_/\/____/

sosnail

build npm version npm download Github file size license

identicon

identicon

Installation

$ npm install sosnail

Usage

<script type="text/javascript" src="sosnail.min.js"></script>

<script type="text/javascript">
    var number = sosnail.number();
</script>
const sosnail = require('sosnail');
import * as sosnail from 'sosnail';
//or
import sosnail from 'sosnail';

const number = sosnail.number();
const letter = sosnail.letter();
const mixture = sosnail.mixture();
const identicon = sosnail.identicon({
  'text': 'test'
});
const color = sosnail.color();
const random = sosnail.random({
  'data': [1, 2, 3, 4, 5]
});

const colorPicker = new sosnail.ColorPicker();
const hex2rgb = colorPicker.hex2rgb('#0000ff');
const rgb2hex = colorPicker.hex2rgb(0,0,255);
//ES6
import {number,letter,mixture,identicon,color,ColorPicker} from 'sosnail';

const randomNumber = number();
const randomLetter = letter();
const colorPicker = new ColorPicker();

Documentation

history

License

MIT

Copyright (c) 2017-present, sosnail

空文件

简介

生成随机数,随机字母,随机颜色,identicon头像,转化颜色等功能的有趣插件 展开 收起
JavaScript
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/sosnail/sosnail.git
git@gitee.com:sosnail/sosnail.git
sosnail
sosnail
sosnail
master

搜索帮助