Files
jquery.uls/scripts/transform.js
Santhosh Thottingal 6d6a1326b5 Use wikimedia/language-data node module for data
Now that we have this node module, let us use that as upstream
for data
2017-08-28 17:46:09 +05:30

16 lines
363 B
JavaScript

var through = require( 'through' );
module.exports = function ( file ) {
var data, end, write;
data = '( function ( $ ) {\n\t$.uls = $.uls || {};\n\t$.uls.data = ';
write = function ( buf ) {
return data += buf;
};
end = function () {
data += '\n} ( jQuery ) );';
this.queue( data );
return this.queue( null );
};
return through( write, end );
};