Mr.Node
A Javascript Library for Node.js Functions
Table of Contents
About
Node.js makes it very easy to use Javascript. Mr.Node make it even easier to use Javascript. It gives a simple API to carry out functions. This way you don't have to write five lines of code for each function. He is very smart.
Documentation
Npm:
$ npm install --save-dev mrnode
Bower:
$ bower install --save-dev mrnode
CDN:
<head>
<script src="https://unpkg.com/mrnode@1.0.2"></script>
</head>
Getting Started
After you have installed Mr.Node, use Node's require attribute in your Javascript file.
var mrnode = require('mrnode');
Main Features
Convert Sass to CSS:
mrnode.csass('yourfolder/yourfile', 'yourdestinationfolder');
Minify Files:
mrnode.minifyjs('yourfolder/yourfile','yourdestination');
mrnode.minifycss('yourfolder/yourfile','yourdestinationfolder');
Beautify Files:
mrnode.beautify('yourfolder/yourfile', 'yourdestinationfolder');
To see more go here.
Customizing Functions
You probably want to customize these functions that I have made. Many of the functions use npm Dependencies. With some knowledge, you can customize these functions to the better likings of your self.
Example:
function create(name, extension) {
fs.writeFile(name + '.' + extension, '//change the name of this file to whatever you like', function(err) {
if (err) return console.log(err);
console.log('File Created');
.pipe(gulp.dest('destination'))
});
}
In this example you add a destination to the create(); function. The code for this was .pipe(gulp.dest('destination')).
License & Copyright
Talon Bragg and Shreyas Lad 2017
.png)