GithubHelp home page GithubHelp logo

wpanglelina / extend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jsmini/extend

0.0 1.0 0.0 176 KB

将对象属性递归放到目标对象,类似jQuery的$.extend

License: MIT License

JavaScript 86.60% HTML 13.40%

extend's Introduction

license Build Status Coveralls npm NPM downloads Percentage of issues still open

A method like $.extend of Jquery. Merge Objects attributes to target object

将对象属性递归放到目标对象,类似jQuery的$.extend

English | 简体中文

Environment Support

unit test ensure it supports the following environments.

IE/Edge Chrome Firefox Safari Opera IOS Android Node
6+ 23+ 4+ 6+ 10+ 5+ 2.3+ 0.10+

Directory

.
├── demo
├── dist  # production code
├── doc   # document
├── src   # source code
├── test  # unit test
├── CHANGELOG.md
└── TODO.md

Usage

npm installation

$ npm install --save @jsmini/extend

Node.js

var name = require('@jsmini/extend').name;

webpack

import { name } from '@jsmini/extend';

Require.js

requirejs(['node_modules/@jsmini/extend/dist/index.aio.js'], function (jsmini_extend) {
    var name = jsmini_extend.name;
})

Browser

<script src="node_modules/@jsmini/extend/dist/index.aio.js"></script>

<script>
    var name = jsmini_extend.name;
</script>

Document

API

Contributing Guide PRs welcome

when initialize, install dependencies

$ npm install

builds your code for production to build folder

$ npm run build

run unit test. notice: borwser enviroment need to test manually. test file is in test/browser

$ npm test

change the version in package.json and README.md, add your description in CHANGELOG.md, and then release it happily.

$ npm run release

publish the new package to npm

$ npm publish --access=public

rename project. you need to edit project name when initialize project or anytime you want to rename the project . you need to rename formName and toname in file rename.js,which will automatically rename project name in the following files

  • README.md
  • package.json
  • config/rollup.js
  • test/browser/index.html
$ npm run rename # rename command

Contributors

contributors

CHANGELOG

CHANGELOG.md

TODO

TODO.md

who is using

extend's People

Contributors

chilingling avatar yanhaijing 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.