Pampour

Myth and Node.js

Feb 6th, 2014
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. # Myth with Node.js
  2.  
  3. $ npm install -g myth
  4.  
  5. # Javascript
  6.  
  7. var myth = require('myth');
  8. var fs = require('fs');
  9.  
  10. var css = fs.readFileSync('index.css', 'utf8');
  11. var converted = myth(css);
  12.  
  13. fs.writeFileSync('converted.css', converted);
Advertisement
Add Comment
Please, Sign In to add comment