Comments (6)
I couldn't wait any longer and npm-published a fork
https://github.com/binarykitchen/zxcvbn-npm
Also made it light, without any minification and async/bower/umd loading so that it can be easily included with browserify.
from zxcvbn.
Hi Michael, I'm working with the original npm package author now to get
access. I'll fix npm and update the readme as soon as that happens.
On Sunday, July 12, 2015, Michael Heuberger [email protected]
wrote:
I couldn't wait any longer and npm-published a fork
https://github.com/binarykitchen/zxcvbn-npmAlso made it light, without any minification and async/bower/umd loading
so that it can be easily included with browserify.—
Reply to this email directly or view it on GitHub
#80 (comment).
from zxcvbn.
All fixed. This separate npm repo should no longer be needed but let me know if you still have outstanding issues.
from zxcvbn.
(I also included install instructions for browserify, npm, bower, requirejs and manual.)
from zxcvbn.
One thing I noticed while updating to use the published NPM module - previously on the server, the require looked like var zxcvbn = require('zxcvbn');
, whereas now it's var zxcvbn = require('zxcvbn').zxcvbn;
.
I realize NPM support was previously unofficial and that the second way is now the officially documented way. Just wanted to give you a heads-up that you might be breaking people depending on ^1.0.0
and to publish a major rev if you want require('zxcvbn').zxcvbn
to be the way going forward.
from zxcvbn.
Hey @ericyhwang, the full story here is messy unfortunately. I originally used exports
instead of module.exports
in init.coffee, in order to support older CommonJS frameworks that don't recognize module.exports
(introduced by node and not originally part of CommonJS spec). This leads to the verbose var zxcvbn = require('zxcvbn').zxcvbn;
.
The original publisher for the npm module added an index.js
file that used modue.exports
on top of my exports call, and I didn't catch it. This gives the nicer require syntax but creates an inconsistency.
My plan going forward is to switch exclusively module.exports
in an upcoming 2.0 release because that's the better interface moving forward -- I'd be great to shorten var zxcvbn = require('zxcvbn').zxcvbn;
to var zxcvbn = require('zxcvbn');
.
The v1 series will continue using exports
for older frameworks that depend on it.
from zxcvbn.
Related Issues (20)
- Password File
- Electron app
- Code security
- Bypass password File HOT 2
- Creating Electron app
- README.md
- please delete this issue
- Password entropy property HOT 1
- Very slow for certain inputs
- recent year regex is... out of date. HOT 2
- Different score for the password strength for the same string between TypeScript and Java versions HOT 5
- 密码强度检测 HOT 1
- Just saying thanks
- Dead "Dropbox Blog Post" URL at demo site
- Possible DOS when run server side
- A ReDoS vulnerability exists in matching.coffee HOT 10
- Microsoft Edge component version showing wrong HOT 1
- Feature request: provide options for smaller builds
- Recommended successors? HOT 1
- I created a pure Swift version of this - how do I get it listed here?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zxcvbn.