GithubHelp home page GithubHelp logo

coo-utils's Introduction

some utils for javascript

why do

项目开发中,发现有一些工具类是基本上每个项目我会用到的。因此重新整理了一下,方便自己使用。

why no npm

因为这样我可以适时的根据不同的项目,对这些类做一些小调整。

它们都有什么?

├──compose.js                     * compose,实现多个function的合并处理
├──cookies.js                     * cookie,处理浏览器的cookies操作
├──html2json.js                   * 将html转化为json对象(使用场景比较适合用于服务端如node)
├──image.js                       * 一些图片处理方法,如:加载、压缩等
├──isApp.js                       * 当前浏览器是不是安卓、苹果、微信、微博、QQ等
├──observer.js                    * 事件观察者模式
├──propertyProxy.js               * 数据的defineProperty的封装类
├──share.js                       * 第三方平台的分享,可自定义标题、封面图、分享链接等(微信、QQ、微博)
├──storage.js                     * localstorage的一些操作(可设置过期时间)
├──uuid.js                        * 根据UserAgent、访问时间、随机数生成的一个唯一值
├──uploader.js                    * 文件上传、带进度、断点续传、分片上传等方法
├──timeago.js                     * 一些时间处理,如时间格式化、倒计时、时间间隔等等
├──throttler.js                   * 防抖、节流
├──coo                            * 一些常用操作类,如深度拷贝、对象相等判断、精确的类型获取

demo

Every uitl has a use case in the explain.

tests

Tests are using mocha, to run the tests use:

npm test

coo-utils's People

Contributors

coocssweb avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.