0.5.0-1 • Published 6 years ago

@yanhaijing/console_js v0.5.0-1

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

console.js npm.io npm Build Status license

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.

Migration to https://github.com/jsmini/console

Guides

Download and install through the npm

$ npm install --save @yanhaijing/console_js

If you are use webpack

import { polyfill } from '@yanhaijing/console_js';

polyfill(); // polyfill console undefined

If you are use requirejs

requirejs(['node_modules/@yanhaijing/console_js/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/@yanhaijing/console_js/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

0.5.0-1

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago