configure project as npm under ensdomains scope (#2)

* configure project as npm  under ensdomains scope

* exclude dist from git
master^2
Muhammed Tanrıkulu 3 years ago committed by GitHub
parent 37d47fa11b
commit f02116b472
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
.gitignore vendored

@ -1 +1,2 @@
dist
node_modules node_modules

@ -0,0 +1,6 @@
node_modules/
test/
.gitignore
circle.yml
index.js
yarn.lock

@ -1,17 +1,17 @@
# Eth ENS Namehash [![CircleCI](https://circleci.com/gh/danfinlay/eth-ens-namehash.svg?style=svg)](https://circleci.com/gh/danfinlay/eth-ens-namehash) # Eth ENS Namehash (Fork)
A javascript library for generating Ethereum Name Service (ENS) namehashes per [spec](https://github.com/ethereum/EIPs/issues/137). A javascript library for generating Ethereum Name Service (ENS) namehashes per [spec](https://github.com/ethereum/EIPs/issues/137).
[Available on NPM](https://www.npmjs.com/package/eth-ens-namehash) [Available on NPM](https://www.npmjs.com/package/@ensdomains/eth-ens-namehash)
## Installation ## Installation
`npm install eth-ens-namehash -S` `npm install @ensdomains/eth-ens-namehash -S`
## Usage ## Usage
```javascript ```javascript
var namehash = require('eth-ens-namehash') var namehash = require('@ensdomains/eth-ens-namehash')
var hash = namehash.hash('foo.eth') var hash = namehash.hash('foo.eth')
// '0xde9b09fd7c5f901e23a3f19fecc54828e9c848539801e86591bd9801b019f84f' // '0xde9b09fd7c5f901e23a3f19fecc54828e9c848539801e86591bd9801b019f84f'

4048
dist/index.js vendored

File diff suppressed because one or more lines are too long

@ -1,15 +1,15 @@
{ {
"name": "eth-ens-namehash", "name": "@ensdomains/eth-ens-namehash",
"version": "2.0.9", "version": "2.0.11",
"description": "A simple module for generating ENS namehashes per spec https://github.com/ethereum/EIPs/issues/137", "description": "A simple module for generating ENS namehashes per spec https://github.com/ethereum/EIPs/issues/137",
"main": "index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"bundle": "browserify index.js -o dist/index.js", "bundle": "browserify index.js -o dist/index.js",
"test": "node test" "test": "node test"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+ssh://git@github.com/danfinlay/eth-ens-namehash.git" "url": "https://github.com/ensdomains/eth-ens-namehash.git"
}, },
"keywords": [ "keywords": [
"Ethereum", "Ethereum",
@ -18,9 +18,9 @@
"author": "Dan Finlay <dan@danfinlay.com>", "author": "Dan Finlay <dan@danfinlay.com>",
"license": "ISC", "license": "ISC",
"bugs": { "bugs": {
"url": "https://github.com/danfinlay/eth-ens-namehash/issues" "url": "https://github.com/ensdomains/eth-ens-namehash/issues"
}, },
"homepage": "https://github.com/danfinlay/eth-ens-namehash#readme", "homepage": "https://github.com/ensdomains/eth-ens-namehash#readme",
"devDependencies": { "devDependencies": {
"tape": "^4.6.3", "tape": "^4.6.3",
"babel-preset-es2015": "^6.24.1", "babel-preset-es2015": "^6.24.1",
@ -30,5 +30,8 @@
"dependencies": { "dependencies": {
"idna-uts46-hx": "^3.4.0", "idna-uts46-hx": "^3.4.0",
"js-sha3": "^0.5.7" "js-sha3": "^0.5.7"
},
"directories": {
"test": "test"
} }
} }

Loading…
Cancel
Save