Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
sha256 Proof of Work Captcha
var salt = Buffer.from('fe23fe23fe23fe23fe23', 'hex');
PoWtcha.work(salt, PoWtcha.TARGET.EASY).then(function(res) {
var nonce = res[0], hash = res[1];
assert.equal(nonce, 5184);
assert.equal(hash.toString('hex'), '000ce8507df7e6f3d173a450d74afa007b4eba74c95a57f60b8eb8e46b0f5899');
});
You should have mocha
, istanbul
and grunt-cli
installed globally, if not run npm install -g mocha instanbul grunt-cli
.
Also recommended to have phantomjs >= 1.9.8
on $PATH
to speed up the asmcrypto.js
build; https//github.com/Medium/phantomjs/releases/download/v1.9.19/phantomjs-1.9.8-linux-x86_64.tar.bz2
Unit Tests are created with Mocha and can be ran with npm test
(or mocha
)
We also run jshint and jscs, these are automatically ran by travis-ci for every commit and pull request.
jshint main.js lib/ test/ && jscs main.js lib/ test/
or simply npm run-script lint
If you're planning to uglify/minify the javascript yourself, make sure to exclude the following variable names from being mangled:
['Buffer', 'sha256_asm', 'asm']
PoWtcha is released under the terms of the MIT license. See LICENCE.md for more information or see http://opensource.org/licenses/MIT.
FAQs
PoWtcha ======= sha256 Proof of Work Captcha
The npm package powtcha receives a total of 0 weekly downloads. As such, powtcha popularity was classified as not popular.
We found that powtcha demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.