Commit fd6a32c0 by Adeel

Package: Adds libsass version.

* Also, report version via CLI and code (#548).
parent 0a4970e4
...@@ -14,6 +14,8 @@ var Emitter = require('events').EventEmitter, ...@@ -14,6 +14,8 @@ var Emitter = require('events').EventEmitter,
var cli = meow({ var cli = meow({
pkg: '../package.json', pkg: '../package.json',
help: [ help: [
require('../lib/').info(),
'',
'Usage', 'Usage',
' node-sass [options] <input.scss> [output.css]', ' node-sass [options] <input.scss> [output.css]',
' cat <input.scss> | node-sass > output.css', ' cat <input.scss> | node-sass > output.css',
......
...@@ -242,3 +242,17 @@ module.exports.renderSync = function(options) { ...@@ -242,3 +242,17 @@ module.exports.renderSync = function(options) {
return result; return result;
}; };
/**
* API Info
*
*/
module.exports.info = function() {
var package = require('../package.json');
return [
'node-sass version: ' + package.version,
'libsass version: ' + package.libsass
].join('\n');
};
{ {
"name": "node-sass", "name": "node-sass",
"version": "1.2.3", "version": "2.0.0-alpha",
"libsass": "3.1.0-alpha",
"description": "Wrapper around libsass", "description": "Wrapper around libsass",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/sass/node-sass", "homepage": "https://github.com/sass/node-sass",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment