New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

twofish

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twofish - npm Package Compare versions

Comparing version 0.1.1 to 1.0.0

config/eslint.json

126

Gruntfile.js

@@ -1,63 +0,85 @@

'use strict';
/*global module*/
(function setUp(module) {
'use strict';
module.exports = function(grunt) {
module.exports = function exportingFunction(grunt) {
var banner = ['/*!',
' * Twofish (ECB and CBC) javascript implementation v<%= pkg.version %>',
' *',
' * Released under the MIT license',
' * www.opensource.org/licenses/MIT',
' *',
' * <%= grunt.template.today("yyyy-mm-dd") %>',
' */\n\n'
].join('\n');
var banner = ['/*!',
' * Twofish (ECB and CBC) javascript implementation v<%= pkg.version %>',
' *',
' * Released under the MIT license',
' * www.opensource.org/licenses/MIT',
' *',
' * <%= grunt.template.today("yyyy-mm-dd") %>',
' */\n\n'
].join('\n');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
options: {
jshintrc: '.jshintrc'
grunt.initConfig({
'pkg': grunt.file.readJSON('package.json'),
'confs': {
'dist': 'dist',
'config': 'config',
'src': 'src',
'spec': 'spec'
},
gruntfile: {
src: 'Gruntfile.js'
},
lib: {
src: [
'2-fish.js'
'eslint': {
'options': {
'config': '<%= confs.config %>/eslint.json'
},
'target': [
'Gruntfile.js',
'<%= confs.src %>/**/*.js',
'<%= confs.spec %>/**/*.js'
]
},
test: {
src: ['spec/**/*.js']
}
},
jasmine : {
src : '2-fish.js',
options : {
specs : 'spec/**/*.js'
}
},
uglify: {
options: {
report: 'gzip',
banner: banner
'uglify': {
'options': {
'sourceMap': true,
'preserveComments': false,
'report': 'gzip',
'banner': banner
},
'minifyTarget': {
'files': {
'<%= confs.dist %>/<%= pkg.name %>.min.js': [
'<%= confs.src %>/<%= pkg.name %>.js'
]
}
}
},
minifyTarget: {
files: {
'dist/2-fish.min.js': ['2-fish.js']
'jasmine': {
'ecb': {
'src': '<%= confs.src %>/<%= pkg.name %>.js',
'options': {
'specs': '<%= confs.spec %>/**/ecb-*.js'
}
},
'cbc': {
'src': '<%= confs.src %>/<%= pkg.name %>.js',
'options': {
'specs': '<%= confs.spec %>/**/cbc-*.js'
}
}
}
}
});
});
// NPM Tasks
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-eslint');
// Default tasks (when type grunt on terminal).
grunt.registerTask('default', [
'jshint',
'jasmine',
'uglify'
]);
};
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.registerTask('default', [
'eslint'
]);
grunt.registerTask('test', [
'eslint',
'jasmine'
]);
grunt.registerTask('prod', [
'eslint',
'uglify'
]);
};
}(module));
{
"name": "twofish",
"version": "0.1.1",
"version": "1.0.0",
"description": "Javascript Twofish implementation.",

@@ -18,6 +18,6 @@ "homepage": "https://github.com/wouldgo/twofish",

"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.6.0",
"grunt-contrib-jasmine": "~0.5.2",
"grunt-contrib-uglify": "~0.2.4"
"grunt": "*",
"grunt-contrib-uglify": "*",
"grunt-contrib-jasmine": "*",
"grunt-eslint": "*"
},

@@ -24,0 +24,0 @@ "author": {

@@ -1,4 +0,6 @@

twofish
Two Fish
=======
Twofish (ECB and CBC) javascript implementation
Twofish (ECB and CBC) javascript implementation.
References to https://www.schneier.com/twofish.html
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc