Skip to content

Commit

Permalink
Expose utils in public API
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilsson committed Apr 22, 2017
1 parent 053378b commit e4df16c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

module.exports = {
Lesshint: require('./lesshint'),
Runner: require('./runner')
Runner: require('./runner'),
utils: require('./utils')
};
8 changes: 8 additions & 0 deletions lib/utils/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

module.exports = {
isAbsoluteURL: require('./is-absolute-url'),
isVariable: require('./is-variable'),
parseSelector: require('./parse-selector'),
parseValue: require('./parse-value')
};
4 changes: 4 additions & 0 deletions test/specs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ describe('lesshint', function () {
it('should expose Runner class in public API', function () {
expect(api.Runner).to.be.a('function');
});

it('should expose utils class in public API', function () {
expect(api.utils).to.be.a('object');
});
});

0 comments on commit e4df16c

Please sign in to comment.