mrnode

1.0.4 • Public • Published

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

©️ License

MIT License Template

©️ Talon Bragg and Shreyas Lad 2017

Dependencies (18)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i mrnode

    Weekly Downloads

    1

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    23.6 kB

    Total Files

    21

    Last publish

    Collaborators

    • realpenetratingshot
    • talon4567