UNPKG

keystore_wdc

Version:

``` npm i keystore_wdc; const KeyStore = require('keystore_wdc'); const ks = new KeyStore(); ``` #### 生成keystore ``` async function create(){ const keystore = await ks.Create("your password"); } ``` * 返回keystore,密码格式不正确返回-1。

39 lines (38 loc) 1.15 kB
const path = require('path') module.exports = { // mode: 'development', devtool: 'source-map', entry: path.join(__dirname, "contract-src/index.ts"), output: { path: path.join(__dirname, "contract-dist"), filename: 'bundle.js', library: 'keystore_wdc_contract', libraryTarget: 'umd', }, resolve: { // Add `.ts` and `.tsx` as a resolvable extension. extensions: [".ts", ".tsx", ".js"], // ignore node module fallback : { "child_process": false, "crypto": false, "buffer": false, } }, module: { rules: [ // all files with a `.ts` or `.tsx` extension will be handled by `ts-loader` { test: /\.tsx?$/, loader: "ts-loader"}, { test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader' } ] }, externals: { // require('ws') as WebSocket ws: 'WebSocket', 'assemblyscript/cli/asc': 'asc' } }