Skip to content

base64 package defined with RequireJS and packaged with bower

License

Notifications You must be signed in to change notification settings

jmagnuss/requirejs-base64

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Install with bower

bower install requirejs-base64

In your requirejs configuration:

require.config({
    paths: {
        base64: 'lib/requirejs-base64/base64',
    },
    //...
});

Require base64 as a dependency in your module.

define(['base64'], function(base64) {

    var encoded = base64.encode('Hello World!');
    console.log("Encoded: " + encoded);

    var decoded = base64.decode(encoded);
    console.log("Decoded: " + decoded);
});

Heads up

I created this project as I wanted a clean solution with requirejs managed by bower. I haven't extensively tested this code though I have been using it for a while and it works solid.

About

base64 package defined with RequireJS and packaged with bower

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%