Skip to content

Commit

Permalink
Merge pull request #21 from runk/semantic-release
Browse files Browse the repository at this point in the history
feat(core): Semantic release
  • Loading branch information
Dmitry Shirokov authored Jul 11, 2019
2 parents 5156e30 + 14b7897 commit bcad672
Show file tree
Hide file tree
Showing 6 changed files with 6,722 additions and 219 deletions.
13 changes: 12 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
language: node_js
node_js:
- "6"
- "8"
- "10"
- "12"

jobs:
include:
- stage: release
node_js: lts/*
# script: skip
deploy:
provider: script
skip_cleanup: true
script:
- npx semantic-release
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (C) 2018 Dmitry Shirokov
Copyright (C) 2019 Dmitry Shirokov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npm i chardet
To return the encoding with the highest confidence:
```javascript
var chardet = require('chardet');
chardet.detect(Buffer.alloc('hello there!'));
chardet.detect(Buffer.from('hello there!'));
// or
chardet.detectFile('/path/to/file', function(err, encoding) {});
// or
Expand All @@ -28,7 +28,7 @@ chardet.detectFileSync('/path/to/file');
To return the full list of possible encodings:
```javascript
var chardet = require('chardet');
chardet.detectAll(Buffer.alloc('hello there!'));
chardet.detectAll(Buffer.from('hello there!'));
// or
chardet.detectFileAll('/path/to/file', function(err, encoding) {});
// or
Expand Down
Loading

0 comments on commit bcad672

Please sign in to comment.