Skip to content
Traductor de español al estúpido idioma estilo metroflog.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
src
test
.gitignore
LICENSE.md
README.md
bower.json
gulpfile.js
package.json

README.md

Googleflog

var googleflog = require('googleflog');

googleflog.translate('Me encanta Googleflog jaja saludos');
// ** meE eEñcAñTA G0o0oGleEfl0oG jAjA zhAlud0ozh -- <3

Installation

This repository provides a library that's distributed by npm.

$ npm install googleflog

You can also install using bower.

$ bower install kinduff/googleflog-pkg

Support

This module can be used in:

  • AMD
  • CommonJS
  • Browser
  • Node.js

Usage

All the code is documented, but here is a brief usage example.

var googleflog = require('googleflog');

// default options
googleflog.translate('Me encanta Googleflog jaja saludos', {
  noHead: false,   // no head on result
  noTail: false,   // no tail on result
  noTrails: false, // just the result
  head: '',        // custom head for result
  tail: ''         // custom tail for result
});
// ** meE eEñcAñTA G0o0oGleEfl0oG jAjA zhAlud0ozh -- <3

// randomized custom head and tail values
googleflog.headMap = ['¸„.-•~¹°”ˆ˜¨', '8>'];
googleflog.tailMap = ['¨˜ˆ”°¹~•-.„¸', '<8'];

googleflog.t('ola k ase'); // .t() is an alias for translate
// ¸„.-•~¹°”ˆ˜¨ 0olA Q AzheE <8

Gulp tasks

To generate the original and minified versions for the dist folder.

$ gulp

Test

Uses mocha and assert for testing. Use npm to run the tests.

$ npm test

License

See the LICENSE file for license rights and limitations (MIT).

You can’t perform that action at this time.