2.0.5 • Published 6 years ago

dbcombo-client v2.0.5

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

DBComboClient

NPM Version NPM Downloads NPM License

Install

npm install dbcombo-client --save

Useage

In NodeJS

var DBComboClient = require('dbcombo-client');
console.log(DBComboClient.stringify([0, 31, 93, 92, 94]));
console.log(DBComboClient.parse('Y31000000Y1Y1'));

// Y31000000Y1Y1
// [0, 31, 92, 93, 94]

Browser for Seajs

<script src="node_modules/dbcombo-client/dist/seajs-plugin.js"></script>

Seajs Config

seajs.config(
{
    DBComboFileIndex: {},    // uri => {index, deps, file}
    DBComboFile: 'https://www.example.com/db.js',    // dbfile uri, append merge key width it
    DBComboFileExtname: '_db',    // ext dbfile uri, default "_db", set false to ignore
                        // Append extname for `db.js`.
                        // Do not use `db.js` directly for combo uri.
                        // A file can not be an folder and file simultaneously.

    DBComboExcludes: function(uri){return false},    // RegExp / Function
    DBComboDelayRequest: true,    // delay request for merge more deps
    DBComboDelayRequestMaxUri: 30,    // not merge when over max length
});

Combo Uri Exapmle

https://www.example.com/db.js_db/Yg0W21X/W35X/W35X/W35X/W35X/V.js

Url parse server power by DBCombo

2.0.5

6 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.4.1

8 years ago

1.4.0

8 years ago

1.3.0

8 years ago

1.2.4

9 years ago

1.2.3

9 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago