Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bcore

Package Overview
Dependencies
Maintainers
7
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bcore

Core JavaScript library for browser runtime

  • 0.0.22
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
Maintainers
7
Weekly downloads
 
Created
Source

bcore

浏览器基础库,提供 event, class, router 等等模块的封装

classes

class.js // 基类, 所有继承关系的class,都需要继承自这里 event.js // 来自node.js,提供基础事件支持 router.js // 提供路由支持,单页应用,或者url存储路径的情况,都可以使用这个包 cookie.js // cookie操作 util.js

incomming

cache.js -- localStorage, db etc.

usage

var class = require('bcore/class');
var event = require('bcore/event');
var router = require('bcore/router');

DOC

class

// 用法
function Constructor() {
  // super class constructor
  this._super.call(this, args....);
  // super class functions
  this._super.prototype.funcA();
}
Class.extend(Constructor, {
  //properties
});

event


``

### router

Keywords

FAQs

Package last updated on 23 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc