Skip to content

A dapper base library for javascript - 前端基础工具库

License

Notifications You must be signed in to change notification settings

iuap-design/tinper-sparrow

Repository files navigation

tinper sparrow

npm version Build Status devDependency Status NPM downloads

中文文档

Introduction

sparrow.js is a front-end base library, which contains the basic operation of DOM, browser and device judgments, Cookies operations, as well as the browser's own function expansion, etc..

Quickstart

Get sparrow

  • npm
	npm install tinper-sparrow
  • cdn
	//design.yonyoucloud.com/static/tinper-sparrow/latest/tinper-sparrow.js

Introducing sparrow

  • ES6
import { sparrow} from "tinper-sparrow"

  • HTML
	<script src="//design.yonyoucloud.com/static/jquery/jquery-1.11.2.js"></script>
    <script src="//design.yonyoucloud.com/static/tinper-sparrow/latest/tinper-sparrow.js"></script>

Note: sparrow is dependent on jQuery

Use

	sparrow.isIE //IE browser returns true, others return to false

	sparrow.isDate(new Date()); //Date Object returns true, others return to false

Read the Develop documentation

Contributing

Develop

Developers can participate in the development of sparrow, but also can be based on sparrow two development

clone:

$ git clone git@github.com:iuap-design/tinper-sparrow.git

install:

$ npm install

build:

$ npm run product

Feedback

If you encounter any problems , submit [issues]((https://github.com/iuap-design/tinper-sparrow/issues),or pull request。

About

A dapper base library for javascript - 前端基础工具库

Resources

License

Stars

Watchers

Forks

Packages

No packages published