Skip to content

Commit

Permalink
feat: add typescript definition
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed May 8, 2019
1 parent 8369bd9 commit f75c2e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function getUserAgentNode(): string;
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
"name": "universal-user-agent",
"version": "0.0.0-development",
"description": "Get a user agent string in both browser and node",
"repository": "https://github.com/gr2m/universal-user-agent.git",
"keywords": [],
"author": "Gregor Martynus (https://github.com/gr2m)",
"license": "ISC",
"main": "index.js",
"browser": "browser.js",
"types": "index.d.ts",
"scripts": {
"coverage": "nyc report --reporter=html && open coverage/index.html",
"coverage:upload": "nyc report --reporter=text-lcov | coveralls",
Expand All @@ -13,9 +18,6 @@
"semantic-release": "semantic-release",
"travis-deploy-once": "travis-deploy-once"
},
"keywords": [],
"author": "Gregor Martynus (https://github.com/gr2m)",
"license": "ISC",
"devDependencies": {
"chai": "^4.1.2",
"coveralls": "^3.0.2",
Expand All @@ -41,9 +43,5 @@
"afterEach",
"expect"
]
},
"repository": {
"type": "git",
"url": "https://github.com/gr2m/universal-user-agent.git"
}
}

0 comments on commit f75c2e9

Please sign in to comment.