14 Star 59 Fork 2

sosnail / sosnail

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
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

Empty file

About

生成随机数,随机字母,随机颜色,identicon头像,转化颜色等功能的有趣插件 expand collapse
JavaScript
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
JavaScript
1
https://gitee.com/sosnail/sosnail.git
git@gitee.com:sosnail/sosnail.git
sosnail
sosnail
sosnail
master

Search