kit-js

0.1.0-alpha3 • Public • Published

kit.js

  • version: 0.1.0-alpha2
  • status: in development
  • project: code

JavaScript Batman utility belt with small tools for various situations in various environments.

Contents

Table of Contents generated with DocToc

API

API Docs

  • arrayCopy: copies an array
  • copy: Performs a deep copy on an object.
  • create: Creates an object with the specified arguments. Think Activator.CreateInstance
  • equals: Determines if two objects or values are equal.
  • format: Formats a string
  • isGlobal: Determines if a variable is the global object.
  • isWindow: Determines if a variable is the window object.
  • fastApply: Faster alternative to Function.prototype.apply.
  • inherits: Instructs a Function to inherit from another Function.
  • Object.is: Polyfill for Object.is
  • Object.assign: Polyfill for Object.assign.

Key Requirements

  • Runs in multiple JavaScript environments: browsers, web workers, nodejs, windows rt
  • AMD support
  • Custom builds thats allows users/developers to only import what they need for standalone libraries or projects.
  • Target ecmascript 6.

Rationale

JavaScript Batman utility belt with small tools for various situations in various environments. Its also my first attempt at using gulp. At some point the code that generates various templates will be extracted into a gulp plugin.

This project is to scratch a small itch. I'm working on a few small libraries that require utility methods that are not in other utility libraries or they are commonly found in web only libraries. Also I want to be able provide different versions of these libraries, including a version that is stand alone with all of the dependencies included.

License

The MIT License (MIT)

Copyright (c) 2013-2014 Michael Herndon http://dev.michaelherndon.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Package Sidebar

Install

npm i kit-js

Weekly Downloads

5

Version

0.1.0-alpha3

License

none

Last publish

Collaborators

  • michaelherndon