@jsmini/console

console.js is a small javascript library, fix console is undefined

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@jsmini/console
580.8.05 months ago6 years agoMinified + gzip package size for @jsmini/console in KB

Readme

license CI npm NPM downloads Percentage of issues still open
console.js is a small javascript library, fix console is undefined, like html5shim and reset.css.
In ie6 ie7,console is undefined. In ie8 ie9, first open the developer tools before, console is undefined.

Guides

Download and install through the npm
$ npm install --save @jsmini/console

If you are use webpack
import { polyfill } from '@jsmini/console';

polyfill(); // polyfill console undefined

If you are use requirejs
requirejs(
  ['node_modules/@jsmini/console/dist/index.aio.js'],
  function (console_js) {
    var polyfill = console_js.polyfill;

    polyfill(); // polyfill console undefined
  },
);

If you are use browser
<script src="node_modules/@jsmini/console/dist/index.aio.js"></script>

<script>
  var polyfill = console_js.polyfill;

  polyfill(); // polyfill console undefined
</script>

Document

API

Principle & Blog

use console.js

Contribution

The first run requires installation of dependencies
$ npm install

Build code
$ npm run build

Run unit test, the browser environment requires manual test, in test/browser
$ npm test

Update package.json version,update README.md version,update CHANGELOG.md,then release
$ npm run release

Push to npm
$ npm publish --access=public

You may need to modify it as follows:
  • README.md
  • package.json
  • config/rollup.js
  • test/browser/index.html

CHANGELOG

CHANGELOG.md

TODO

TODO.md

Who use

Refrence

Related projects