Skip to content

Commit

Permalink
feat: Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
slysterous committed Sep 3, 2017
1 parent bbf5de6 commit 00d30b5
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- '7'
- '6'
- '4'
before_script:
- chmod 0777 ./node_modules/.bin/mocha
- npm prune
script:
- npm run test:single
after_success:
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
26 changes: 21 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,41 @@
{
"name": "lazy-crypto",
"version": "1.0.0",
"version": "0.0.0-semantically-released",
"description": "Cryptography utilities for safe password and token handling.",
"main": "src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"commit": "git-cz",
"test": "mocha src/index.test.js -w",
"test:single": "mocha src/index.test.js",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/slysterous/lazy-crypto.git"
"url": "https://github.com/slysterous/lazy-crypto.git"
},
"keywords": [
"cryptography",
"utiliti",
"password",
"token\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[y"
"token"
],
"author": "Christos Petropoulos <chrispetropoulos91@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/slysterous/lazy-crypto/issues"
},
"homepage": "https://github.com/slysterous/lazy-crypto#readme"
"homepage": "https://github.com/slysterous/lazy-crypto#readme",
"dependencies": {},
"devDependencies": {
"chai": "4.1.2",
"commitizen": "2.9.6",
"cz-conventional-changelog": "2.0.0",
"mocha": "3.5.0",
"semantic-release": "^7.0.2"
}
}
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,7 @@ LazyCrypto.prototype.generateEmailVerificationToken=function(hours,length){
token: token,
expires: expires
}
}
}


module.exports=LazyCrypto;
20 changes: 20 additions & 0 deletions src/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
var expect =require('chai').expect;
var LazyCrypto=require('./index.js');

describe("lazy-crypto",function(){
it('dummy test', function(){
expect(true).to.be.true;
});
});

//LazyCrypto

//generateEmailVerificationToken

//validateSha512HashAndSalt

//generateSha512HashAndSalt

//generateSha512Hash

//generateSalt
Empty file removed src/test.index.js
Empty file.

0 comments on commit 00d30b5

Please sign in to comment.