0.10.0-beta.3 • Published 2 months ago

@linthtml/dom-utils v0.10.0-beta.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

dom-utils

TODO: description

Usage

const domUtils = require('dom-utils');

// TODO: DEMONSTRATE API

knife

Put any utility functions in this directory. Each file should export an object with functions like this:

// lib/knife/some_util.js
module.exports = {
  some_util: function () {
    console.log('HELLO WORLD');
  },

  some_util2: function (msg) {
    console.log(msg);
  }
};

All of the files in this directory (excluding index.js) will have the functions on their exports merged and then exported by index.js. You can then use knife in other parts of the code base like so:

// lib/some_file.js

var knife = require('./knife');

knife.dice(' some text ');

NOTE: only functions will be copied from exports, variables will not be. Do not rely on the this context in your utility functions to have certain properties, etc.

0.10.0-beta.6

2 months ago

0.10.0-beta.3

2 months ago

0.10.0-beta.2

2 months ago

0.10.0-beta.1

2 months ago

0.9.5

11 months ago

0.9.5-alpha.1

11 months ago

0.9.5-alpha.0

11 months ago

0.9.0

2 years ago

0.9.0-beta.3

2 years ago

0.9.0-beta.2

2 years ago

0.9.0-beta.4

2 years ago

0.9.0-beta.1

2 years ago

0.9.0-alpha.4

2 years ago

0.9.0-alpha.6

2 years ago

0.9.0-alpha.7

2 years ago

0.9.0-alpha.2

3 years ago

0.9.0-alpha.1

3 years ago

0.9.0-alpha.0

3 years ago