extracct
v1.0.0
Published
Node Module
Downloads
2
Readme
extracct
Extract the extras
Installation
npm install extracct --save
DOCS
Setting A Category
const Exr = require('extracct');
// Set Title
Exr.set('title', 'My Title');
// Set Description
Exr.set('description', 'A module.');
// Set Author
const Pack = require('./package.json');
Exr.set('author', Pack.author);
Returning A Category
var title = Exr.return('title');
var description = Exr.return('description');
var author = Exr.return('author');
console.log('Title: ' + title);
console.log('Description: ' + description);
console.log('Author: ' + author);
Reading A Category
Exr.read('title'); // Console.logs Your Title
Exr.read('description'); // Console.logs Your Description
Exr.read('author'); // Console.logs Your Author