Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
aok
instanceaok.prototype.handler
aok.prototype.express
aok.prototype.explain
aok.prototype.run
aok.prototype.cull
aok.prototype.init
aok(object)
aok({
id: 'example',
test: function() {
return 'example' === this.id;
}
});
aok(test)
for non-object testsaok(true);
aok(aok instanceof aok);
aok(function() {
return isFinite(this.id);
});
aok(id, test)
1.8+aok('example', true);
aok('example', function() {
return true;
});
aok()
without arguments creates an idle instance that can manually be run later.var o = aok();
o.test = true;
o.run();
console
where availableaok.log(message)
aok.info(message)
aok.warn(message)
aok.error(message)
aok.assert(expression, message)
1.6+aok.trace()
aok.clear()
1.7+try
/catch
to test if fn can run.object[key]
or its method's result if callable.grunt.initConfig({
aok: {
test: ['./test/'],
extras: ['./test/extras']
}
});
'aok'
grunt.loadNpmTasks('aok');
'aok'
tasks$ grunt aok
$ grunt aok:test
$ grunt aok:extras
/src
or report issues$ npm install # install dependencies
$ grunt jshint:sub # lint sub dirs
$ grunt aok # run tests
Builds have +timestamp in the version number and are made later via grunt
.
FAQs
Extensible test suite API.
We found that aok demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.