Skip to content

Commit

Permalink
Fix require module name in README example
Browse files Browse the repository at this point in the history
Upgrade dependencies
  • Loading branch information
pokusew committed Feb 21, 2019
1 parent cf4c105 commit 0a631be
Show file tree
Hide file tree
Showing 3 changed files with 1,345 additions and 63 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ npm install @pokusew/pcsclite --save
## Example

```javascript
const pcsclite = require('pcsclite');
const pcsclite = require('@pokusew/pcsclite');

const pcsc = pcsclite();

Expand All @@ -87,6 +87,7 @@ pcsc.on('reader', (reader) => {
return;
}

// noinspection JSBitwiseOperatorUsage
if ((changes & reader.SCARD_STATE_EMPTY) && (status.state & reader.SCARD_STATE_EMPTY)) {

console.log("card removed");
Expand All @@ -106,6 +107,7 @@ pcsc.on('reader', (reader) => {

}

// noinspection JSBitwiseOperatorUsage
if ((changes & reader.SCARD_STATE_EMPTY) && (status.state & reader.SCARD_STATE_EMPTY)) {

console.log("card inserted");
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
"test": "mocha"
},
"dependencies": {
"bindings": "^1.3.1",
"bindings": "^1.4.0",
"nan": "^2.12.1"
},
"devDependencies": {
"mocha": "^5.2.0",
"mocha": "^6.0.0",
"should": "^13.2.3",
"sinon": "^7.2.2"
"sinon": "^7.2.4"
},
"gypfile": true
}
Loading

0 comments on commit 0a631be

Please sign in to comment.