Skip to content

Add Git

JSTime supports directly adding GitHub repositories as dependencies of your project.

Terminal window
$ jspm add github:lodash/lodash

This will add the following line to your package.json:

{
"dependencies": {
+ "lodash": "github:lodash/lodash"
}
}

JSTime supports a number of protocols for specifying Git dependencies.

Terminal window
$ jspm add git+https://github.com/lodash/lodash.git
$ jspm add git+ssh://github.com/lodash/lodash.git#4.17.21
$ jspm add git@github.com:lodash/lodash.git
$ jspm add github:colinhacks/zod

See Docs > Package manager for complete documentation of JSTime’s package manager.