Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dat-registry

Package Overview
Dependencies
Maintainers
5
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dat-registry - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

6

index.js

@@ -13,5 +13,5 @@ var Township = require('township-client')

var api = server + '/api/v1'
var township = Township({
server: api
})
var township = Township(xtend(opts, {
server: api // used over opts.server
}))
return {

@@ -18,0 +18,0 @@ login: township.login.bind(township),

{
"name": "dat-registry",
"version": "2.1.1",
"version": "2.1.2",
"description": "dat registry api",

@@ -5,0 +5,0 @@ "main": "index.js",

# dat-registry-client
API Registry Client for publishing dats
API Registry Client for publishing dats.
## Installation
```
npm install dat-registry
```
### Quick Example

@@ -31,4 +37,20 @@

* `opts.server`: the server to query. Default is `https://datproject.org`
* `opts.server`: the server to query. Default is `https://datproject.org/api/v1`
Other options are passed to [township-client](https://github.com/township/township-client), these include:
```js
opts = {
config: {
filename: '.townshiprc', // configuration filename (stored in os homedir)
filepath: '~/.townshiprc' // specify a full config file path
},
routes: { // routes for ALL township servers used by client
register: '/register',
login: '/login',
updatePassword: '/updatepassword'
}
}
```
#### `registry.login(data, cb)`

@@ -35,0 +57,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc