grand-array
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -245,3 +245,10 @@ module.exports = { | ||
return primes.length; | ||
}, | ||
toJSON : function(arr){ | ||
var obj = JSON.stringify(arr); | ||
var fs = require('fs'); | ||
fs.writeFile("array.json", obj, function(err, result) { | ||
if(err) console.log('error', err); | ||
}); | ||
} | ||
} |
{ | ||
"name": "grand-array", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Easy to use Array Manipulator with tons of Array Operations", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -69,2 +69,10 @@ # grand-array | ||
## JSON Objects | ||
```javascript | ||
GrandArray.toJSON(array) //creates a .json file containing the same object | ||
``` | ||
## Sorting And Reversing | ||
@@ -71,0 +79,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10162
248
128
2