Skip to content

Personal port of underscore specific functions

Notifications You must be signed in to change notification settings

jesusr/overscore

Repository files navigation

overscore

Underscore lightweight replacement, forcing the use of es6 functions.

Build Status

Getting Started

import * from 'overscore';

or

const overscore = require('overscore');

Running the tests

Included in our Travis CI system, we use Karma, Mocha and Chai as default test runner in this project. Run npm test, or use the debug system at VSCode. It will generate the code coverage for you at /coverage folder. The configuration for the coverage task is under the karma.conf.js file at the project root.

Code quality, linters and styling

Controlled by JSHint and JSBeautifier, included in the TravisCI flow.

Development

npm run compile:minimal

or

npm run compile:complete

The compilation is driven by npm scripts, so npm run compile:minimal will generate a ~7KB file named overscore.es5.minimal.js with its respective sourcemap. This version is trully minified and with jQuery like external library in order to minify the weight of the library. You should choose this option if you have jQuery like global variable in your project.

In the other hand, you have npm run compile:complete that will generate a ~288KB file name overscore.es5.complete.js that includes the library and the jQuery dependency inside (~250KB for jQuery weight).

By default, the load of the module will get the complete version, but this is configurable in your compiler, requiring the file instead the complete module.

Built With

About

Personal port of underscore specific functions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published