@marcopeg/utils
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -6,3 +6,4 @@ module.exports = { | ||
pause: require('./lib/pause'), | ||
request: require('./lib/request'), | ||
truncate: require('./lib/truncate') | ||
} |
{ | ||
"name": "@marcopeg/utils", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Javascript utils for server and client projects", | ||
@@ -20,4 +20,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"es6-promise": "^4.2.4", | ||
"isomorphic-fetch": "^2.2.1", | ||
"winston": "^2.4.2" | ||
} | ||
} |
# utils | ||
Javascript utils for server and client projects | ||
This is an opinionated set of personal javascript utilities that I | ||
use to share from project to project and I'm tired to copy over. | ||
Why? | ||
**Point n.1:** Many great libraries have huge footprint. Here I aim | ||
for the barebone and allow to cherry pick each module seapratedly. | ||
**Point n.2:** Sometimes it's just faster to DIY. I plan to keep | ||
this library as a personal API and implement the functions with better | ||
open source libraries if/when I find them. | ||
**Point n.3:** If Facebook does it (fbjs), why shouldn't I? :-) | ||
**Point n.4:** No backward compatibility. I target NodeJS from version | ||
9.x and modern web browsers. There is no transpilation that will bloat the code. | ||
# Modules | ||
## cancelEvent | ||
@@ -57,2 +74,7 @@ | ||
## request | ||
Wraps isomorphic fetch with some basic utility functions. | ||
(this can be optimized a lot) | ||
## truncate | ||
@@ -59,0 +81,0 @@ |
Sorry, the diff of this file is not supported yet
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
Network access
Supply chain riskThis module accesses the network.
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
11467
10
209
86
3
1
+ Addedes6-promise@^4.2.4
+ Addedisomorphic-fetch@^2.2.1
+ Addedencoding@0.1.13(transitive)
+ Addedes6-promise@4.2.8(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedisomorphic-fetch@2.2.1(transitive)
+ Addednode-fetch@1.7.3(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedwhatwg-fetch@3.6.20(transitive)