Skip to content
This repository has been archived by the owner on Mar 18, 2019. It is now read-only.

Commit

Permalink
cssnext return a css string
Browse files Browse the repository at this point in the history
Close #1
  • Loading branch information
MoOx committed Aug 13, 2014
1 parent b0427cd commit 9f0087a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
21 changes: 20 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
console.log("@todo")
/**
* Modules dependencies
*/
var postcss = require("postcss")

/**
* Process a CSS `string`
*
* @param {String} string
* @param {Object} options
* @return {String}
*/
module.exports = function cssnext(string, options) {
// ensure options is an object
options = options || {}

return postcss()
.process(string, options)
.css
}
4 changes: 3 additions & 1 deletion test/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
var test = require("tape")

var cssnext = require("..")

test("cssnext", function(t) {
t.equal(true, true, "cssnext is useless for now")
t.ok(typeof cssnext("html{}") === "string", "should return a string")

t.end()
})

0 comments on commit 9f0087a

Please sign in to comment.