1.4.2-z9A8tYO • Published 7 years ago

140tools v1.4.2-z9A8tYO

Weekly downloads
46
License
MIT
Repository
github
Last release
7 years ago

Replace those large frameworks with an easy*, modern, cross-browser tiny framework.

*learning the API might be difficult for some users as all object names are one letter, however there is a larger plugin that gives an easier API and more descriptive function names.

140tools is a tiny collection of 140-byte sized scripts that create a powerful multi-purpose framework smaller than all popular JavaScript frameworks out there combined.

1. Getting Started

1.1. Installation

Along with 140tools being a tiny library, it has an easy installation for any platform.

1.1.1. Node.js

$ npm i 140tools
const T140 = require('140tools');
// or
import * as T140 from '140tools';

1.1.2. JS

  1. <script src="140tools.github.io/cdn/latest.js" />

It's as easy as that! You can access 140tools by using the variable T140.

1.2. Pros

  • Absolutely nano
  • Endless possibilities
  • Faster load time
  • Supports all major browsers
  • Replaces almost any library with even more tools
  • Flexible and extensible
  • Professional material design components
  • Fast code

1.3. Cons

  • Confusing API with one-letter names

2. Patches

Each version of 140tools is called a patch because we don't want to ruin version 1.42. It's got 140 and the meaning of life in it!

Developers can make patches, and so can contributors too. If you want to contribute to 140tools, use the following:

# NOTE: Requires Node 8.4.0!
$ git clone https://github.com/140tools/140tools.git
$ cd 140tools
$ npm run cli patch add MyPatch
# work your magic in ./patches/MyPatch/
$ npm run cli patch compile MyPatch
$ npm run cli patch finish MyPatch
# upload patch-MyPatch.ct140patch to an issue in GitHub and you're good!

2.1. Applying a patch

$ npm run cli patch apply ./patch-MyPatch.ct140patch
# ./MyPatch/ contains the pathed files