AlphaGit / ng-pattern-restrict

Allowing only certain inputs based on a regex pattern, for AngularJS
http://alphagit.github.io/ng-pattern-restrict/
MIT License
47 stars 32 forks source link

Allow npm install #40

Closed battmanz closed 8 years ago

battmanz commented 8 years ago

Could you make it possible to install this via npm? I'm using browserify and all of my other packages (including angular) can be installed via npm.

AlphaGit commented 8 years ago

Hi! Sure, I'll work on that.

While I get that done, you should be able to point the npm dependency to the repository. You may even point to a particular commit or tag if you're worried about the incoming changes.

"dependencies": {
  "ng-pattern-restrict": "https://github.com/AlphaGit/ng-pattern-restrict.git#v0.2.0"
}

However, I'll still work to get it today or tomorrow into the npm registry. Thanks!

battmanz commented 8 years ago

Thanks for getting back to me so fast! Unfortunately it won't work to install directly from github, because there is no version specified in the package.json file. I get the following error

npm ERR! No version provided in package.json
AlphaGit commented 8 years ago

@battmanz Got it!

I just published to the npm registry, you should be able to get it with

npm install ng-pattern-restrict

The version right now is 0.2.1.

Thanks!

battmanz commented 8 years ago

Thank you!