New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

drange

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drange - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

types/index.d.ts

11

package.json
{
"name": "drange",
"version": "1.0.1",
"version": "1.0.2",
"description": "For adding, subtracting, and indexing discontinuous ranges of numbers",

@@ -12,6 +12,8 @@ "keywords": [

"files": [
"lib"
"lib",
"types/index.d.ts"
],
"scripts": {
"test": "istanbul cover node_modules/.bin/_mocha -- test/*-test.js"
"test": "istanbul cover node_modules/.bin/_mocha -- test/*-test.js",
"dtslint": "dtslint types"
},

@@ -33,3 +35,4 @@ "repository": {

},
"license": "MIT"
"license": "MIT",
"types": "./types"
}

@@ -31,3 +31,3 @@ # drange

###DRange#add(drange)
### DRange#add(drange)
Adds all of another DRange's subranges

@@ -70,1 +70,15 @@

npm test
# Integration with TypeScript
DRange includes TypeScript definitions.
```typescript
import * as DRange from "drange";
const range: DRange = new Drange(2, 5);
```
Use dtslint to check the definition file.
npm install -g dtslint
npm run dtslint
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