All Projects → browserify → Commonjs Assert

browserify / Commonjs Assert

Licence: mit
Node.js's require('assert') for all engines

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Commonjs Assert

mocaccino.js
Mocha test runner as a Browserify plugin
Stars: ✭ 22 (-91.37%)
Mutual labels:  browserify
typescript-css-modules-demo
A working demo of CSS Modules, using TypeScript, css-modulesify and typed-css-modules
Stars: ✭ 25 (-90.2%)
Mutual labels:  browserify
openapi-assert
Asserting data against OpenAPI docs.
Stars: ✭ 17 (-93.33%)
Mutual labels:  assert
LoanJS
Calculate loan in js (browser/node.js) for equal installments, installments decreasing, the sum of interest, etc.
Stars: ✭ 20 (-92.16%)
Mutual labels:  browserify
css-extract
Extract CSS from a browserify bundle
Stars: ✭ 46 (-81.96%)
Mutual labels:  browserify
split-require
commonjs-first bundle splitting, for browserify
Stars: ✭ 80 (-68.63%)
Mutual labels:  browserify
got
An enjoyable golang test framework.
Stars: ✭ 234 (-8.24%)
Mutual labels:  assert
generator-phaser-browserify
A generator for Phaser using Gulp and Browserify
Stars: ✭ 36 (-85.88%)
Mutual labels:  browserify
bleh
A web framework with automatic Browserify + Less + Express + Handlebars
Stars: ✭ 47 (-81.57%)
Mutual labels:  browserify
php-assert
Fast flexible php assert
Stars: ✭ 18 (-92.94%)
Mutual labels:  assert
serverless-plugin-browserifier
Reduce the size and speed up your Node.js based lambda's using browserify.
Stars: ✭ 26 (-89.8%)
Mutual labels:  browserify
browserify-cipher
No description or website provided.
Stars: ✭ 15 (-94.12%)
Mutual labels:  browserify
extendscript-starter
Starter project for extendscript-bundler + live reload capabilities
Stars: ✭ 26 (-89.8%)
Mutual labels:  browserify
browserify-test
An easy way to test front-end libraries using browserify and mocha
Stars: ✭ 37 (-85.49%)
Mutual labels:  browserify
underscore.haz
🔍 _.haz() is like _.has() but this underscore and/or lodash mixin lets you do deep object key existence checking with a dot denoted string, for example 'a.b.c'
Stars: ✭ 13 (-94.9%)
Mutual labels:  assert
earl
☕ Ergonomic, modern and type-safe assertion library for TypeScript
Stars: ✭ 217 (-14.9%)
Mutual labels:  assert
middleman-gulp
A Middleman 4 template using Gulp.js via the external pipeline
Stars: ✭ 42 (-83.53%)
Mutual labels:  browserify
Naza
🍀 Go basic library. || Go语言基础库
Stars: ✭ 253 (-0.78%)
Mutual labels:  assert
domain-browser
Node's domain module for the web browser
Stars: ✭ 30 (-88.24%)
Mutual labels:  browserify
assert-true
A lot of ways to you set your assert as true
Stars: ✭ 19 (-92.55%)
Mutual labels:  assert

assert

The assert module from Node.js, for the browser.

Build Status npm npm

With browserify, simply require('assert') or use the assert global and you will get this module.

The goal is to provide an API that is as functionally identical to the Node.js assert API as possible. Read the official docs for API documentation.

Install

To use this module directly (without browserify), install it as a dependency:

npm install assert

Inconsistencies with Node.js assert

Due to differences between browsers, some error properties such as message and stack will be inconsistent. However the assertion behaviour is as close as possible to Node.js and the same error code will always be used.

Contributing

To contribute, work on the source files. Then build and run the tests against the built files. Be careful to not introduce syntax that will be transpiled down to unsupported syntax. For example, for...of loops will be transpiled to use Symbol.iterator which is unavailable in IE.

Build scripts

npm run build

Builds the project into the build dir.

npm run dev

Watches source files for changes and rebuilds them into the build dir.

npm run test

Builds the source files into the build dir and then runs the tests against the built project.

npm run test:nobuild

Runs the tests against the built project without rebuilding first.

This is useful if you're debugging in the transpiled code and want to re-run the tests without overwriting any changes you may have made.

npm run test:source

Runs the tests against the unbuilt source files.

This will only work on modern Node.js versions.

npm run test:browsers

Run browser tests against the all targets in the cloud.

Requires airtap credentials to be configured on your machine.

npm run test:browsers:local

Run a local browser test server. No airtap configuration required.

When paired with npm run dev any changes you make to the source files will be automatically transpiled and served on the next request to the test server.

License

MIT © Joyent, Inc. and other Node contributors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].