All Projects → smltq → jPublic

smltq / jPublic

Licence: MIT license
在我们开发项目的时候,无论项目规模大小,在所难免会写一些工具型函数来解决一些问题,随着项目开发和维护的时间越来越长,这些工具型函数会越来越多,同时还会穿插在各个项目的各模块或者文件当中,使得项目变的越来越臃肿,也不方便复用和维护。这时我们就会提取出一个类似的工具库或者基础库作为项目基础依赖,在项目中重复利用起来。 为了这样的工具库或类库更易扩展、易维护、易复用和更加稳定,我们就需要更好的去管理完善工具库。

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to jPublic

sweekt
🍭 Some sugar to sweeten Kotlin development.
Stars: ✭ 35 (-10.26%)
Mutual labels:  utils, common
XinFramework
Android 快速开发框架 总结以往开发结合三方项目 不断更新
Stars: ✭ 21 (-46.15%)
Mutual labels:  utils, common
dd
This package will add the dd and dump helpers to your Phalcon application.
Stars: ✭ 17 (-56.41%)
Mutual labels:  utils
geojson-python-utils
Python helper functions for manipulating GeoJSON
Stars: ✭ 86 (+120.51%)
Mutual labels:  utils
useful
🇨🇭 A collection of useful functions for working in Elixir
Stars: ✭ 21 (-46.15%)
Mutual labels:  utils
Y-BP
YFE Team 前端最佳实践
Stars: ✭ 28 (-28.21%)
Mutual labels:  utils
cmn-utils
公共函数&请求封装
Stars: ✭ 43 (+10.26%)
Mutual labels:  utils
agon
🦉 my golang utilities, log json config and other
Stars: ✭ 12 (-69.23%)
Mutual labels:  utils
prototyped.js
Some common Typescript prototypes
Stars: ✭ 22 (-43.59%)
Mutual labels:  common
timestampy
🕒 Bunch of utilities useful when working with UNIX timestamps
Stars: ✭ 21 (-46.15%)
Mutual labels:  utils
commons
flutter commons package
Stars: ✭ 42 (+7.69%)
Mutual labels:  common
utils.js
Fast, small and purely functional utility library
Stars: ✭ 132 (+238.46%)
Mutual labels:  utils
py-eth-sig-utils
Collection of python functions to generate hashes for signing on Ethereum
Stars: ✭ 18 (-53.85%)
Mutual labels:  utils
aws-sdk-extra
The AWS SDK + a handful of extra convenience methods.
Stars: ✭ 18 (-53.85%)
Mutual labels:  utils
js-common-functions
🛠️ JS common functions
Stars: ✭ 11 (-71.79%)
Mutual labels:  common
ThemeApplyTools
MIUI 无 root 主题工具
Stars: ✭ 31 (-20.51%)
Mutual labels:  utils
permissionUtil
Simple permission helper
Stars: ✭ 64 (+64.1%)
Mutual labels:  utils
autils
Awesome frontend utils library
Stars: ✭ 17 (-56.41%)
Mutual labels:  utils
android-library
Android开发基础库
Stars: ✭ 14 (-64.1%)
Mutual labels:  utils
type-predicates
A comprehensive collection of type-guards, type assertions and related utils
Stars: ✭ 44 (+12.82%)
Mutual labels:  utils

jPublic

License PRs Welcome GitHub stars GitHub forks

交流QQ群:1017567122

前言

在我们开发项目的时候,无论项目规模大小,在所难免会写一些工具型函数来解决一些问题,随着项目开发和维护的时间越来越长,这些工具型函数会越来越多,同时还会穿插在各个项目的各模块或者文件当中,使得项目变的越来越臃肿,也不方便复用和维护。这时我们就会提取出一个类似的工具库或者基础库作为项目基础依赖,在项目中重复利用起来。 为了这样的工具库或类库更易扩展、易维护、易复用和更加稳定,我们就需要更好的去管理完善工具库。

jPublic项目介绍

jPublic 是一个 JavaScript 工具库,它提供了一整套函数式编程的实用功能,但是不依赖任何第三方插件。它弥补了 jQuery、Underscore等没有实现的功能,希望能成为我们项目必不可少的部分。

jPublic 目前提供了80多个函数,包括常用的:debounce、throttle、poll等。

本项目托管在GitHub上。 你可以通过issues page、QQ群等途径报告bug以及参与特性讨论。

jPublic是一个完全开源的JavaScript函数库。

组织结构

+-- docs  API文档
|   +-- index.html          文档入口
|   +-- ...
+-- test  测试
|   +-- utility.js
|   +-- testIndex.html      单元测试入口
|   +-- ...
--- .gitignore              git忽略规则
--- LICENSE                 开源协议
--- README.md               项目说明
--- favicon.ico             icon

--- karma.conf.js           karma配置

--- jsdoc.json              文档生成配置
--- package.json            npm配置

--- jPublic.js              源文件
--- jPublic-min.js          压缩文件
--- jPublic-min.map         sourcemap

环境配置

技术 名称 官网
karma 测试框架 https://github.com/karma-runner
qunit 单元测试工具 https://qunitjs.com/
jsdoc 文档生成 https://github.com/jsdoc/jsdoc
TUI JSDoc Template 文档生成模板 https://github.com/nhn/tui.jsdoc-template
nodejs js运行时 https://nodejs.org/zh-cn/
UglifyJS2 压缩工具 https://github.com/mishoo/UglifyJS2/tree/v2.x

引入方式

  • Require.js引入

    require(["jPublic"]

  • 页面引入

    <script src="jPublic.min.js"></script>

  • vue引入

    import _ from '@/utils/jPublic'

在线文档

生成压缩及map文件

uglifyjs jPublic.js -o jPublic.min.js --source-map "url='jPublic.min.js.map'"

生成最新文档

jsdoc jPublic.js -d docs

FAQ

许可证

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].