Stats

 Latest version : 1.4.2-z9A8tYO

 Last updated on 2017-09-04T13:50:18.327Z

 Keywords : 140, 140bytes, 140byte, js, framework, multipurpose, tool, tools

 Downloads :

  • 99 in Last Month

 Links :

 Examples

¯\_(ツ)_/¯
No examples found for this package

 Readme



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

 Comments