add some structure
This commit is contained in:
parent
c7fc9a641e
commit
7d79f79b6a
36
.gitlab-ci.yml
Normal file
36
.gitlab-ci.yml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
image: hosttoday/ht-docker-node:npmts
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- release
|
||||||
|
|
||||||
|
testLEGACY:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- npmci test legacy
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
|
||||||
|
testLTS:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- npmci test lts
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
|
||||||
|
testSTABLE:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- npmci test stable
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
|
||||||
|
release:
|
||||||
|
stage: release
|
||||||
|
environment: npmjs-com_registry
|
||||||
|
script:
|
||||||
|
- npmci publish
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
tags:
|
||||||
|
- docker
|
13
README.md
13
README.md
@ -1,2 +1,15 @@
|
|||||||
# nodehash
|
# nodehash
|
||||||
simplifies access to node hash functions. TypeScript Ready
|
simplifies access to node hash functions. TypeScript Ready
|
||||||
|
|
||||||
|
## Status
|
||||||
|
[![build status](https://gitlab.com/pushrocks/nodehash/badges/master/build.svg)](https://gitlab.com/pushrocks/nodehash/commits/master)
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
We recommend the use of TypeScript for best in class intellisense.
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import * as nodehash from "nodehash";
|
||||||
|
|
||||||
|
let sha256 = new nodehash.sha256();
|
||||||
|
let myHashedString = sha256.fromString();
|
||||||
|
```
|
1
dist/index.js
vendored
1
dist/index.js
vendored
@ -1 +1,2 @@
|
|||||||
|
"use strict";
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
|
2
dist/nodehash.plugins.d.ts
vendored
Normal file
2
dist/nodehash.plugins.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import "typings-global";
|
||||||
|
export import crypto = require("crypto");
|
4
dist/nodehash.plugins.js
vendored
Normal file
4
dist/nodehash.plugins.js
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
"use strict";
|
||||||
|
require("typings-global");
|
||||||
|
exports.crypto = require("crypto");
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZWhhc2gucGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25vZGVoYXNoLnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQTtBQUNWLGNBQU0sV0FBVyxRQUFRLENBQUMsQ0FBQyJ9
|
1
npmextra.json
Normal file
1
npmextra.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{}
|
@ -26,5 +26,8 @@
|
|||||||
"npmts-g": "^5.2.8",
|
"npmts-g": "^5.2.8",
|
||||||
"should": "^11.1.0",
|
"should": "^11.1.0",
|
||||||
"typings-test": "^1.0.1"
|
"typings-test": "^1.0.1"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"typings-global": "^1.0.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
import * as plugins from "./nodehash.plugins";
|
2
ts/nodehash.plugins.ts
Normal file
2
ts/nodehash.plugins.ts
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import "typings-global";
|
||||||
|
export import crypto = require("crypto");
|
Loading…
Reference in New Issue
Block a user