Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publish to npm #21

Open
tmpvar opened this issue May 11, 2011 · 3 comments
Open

publish to npm #21

tmpvar opened this issue May 11, 2011 · 3 comments

Comments

@tmpvar
Copy link

tmpvar commented May 11, 2011

json-schema appears to be a valid node.js module.

tmpmac:lib tmpvar$ pwd
/Users/tmpvar/work/javascript/json-schema/lib
tmpmac:lib tmpvar$ node
> require('./validate');
{ [Function: validate]
  Integer: { type: 'integer' },
  validate: [Circular],
  checkPropertyChange: [Function],
  _validate: [Function],
  mustBeValid: [Function] }
> 

It would be great if I could just npm install json-schema

@tmpvar
Copy link
Author

tmpvar commented May 11, 2011

looks like there is an issue installing; I've created an issue on npm: https://github.com/isaacs/npm/issues/901

@smith
Copy link

smith commented May 11, 2011

FWIW you can also install directly from the tarball for now:

 npm install https://github.com/kriszyp/json-schema/tarball/master
 node -e 'require("json-schema/lib/validate")'

@tmpvar
Copy link
Author

tmpvar commented May 11, 2011

dang, very nice. Apparently this also works!

tmpmac:test tmpvar$ cat package.json
{
  "author": "",
  "name": "test",
  "version": "0.0.0",
  "repository": {
    "url": ""
  },
  "engines": {
    "node": "~v0.4.8-pre"
  },
  "dependencies": {
    "json-schema" : "https://github.com/kriszyp/json-schema/tarball/master"
  },
  "devDependencies": {}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants