Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

analytics-utils

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

analytics-utils - npm Package Compare versions

Comparing version 0.0.15 to 0.0.16

dist/analytics-utils.js

70

package.json
{
"name": "analytics-utils",
"version": "0.0.15",
"version": "0.0.16",
"description": "Analytics utility functions",
"main": "dist/index.js",
"author": "David Wells <hello@davidwells.io>",
"license": "MIT",
"main": "lib/analytics-utils.cjs.js",
"jsnext:main": "lib/analytics-utils.es.js",
"module": "lib/analytics-utils.es.js",
"browser": {
"./lib/analytics-utils.cjs.js": "./lib/analytics-utils.browser.cjs.js",
"./lib/analytics-utils.es.js": "./lib/analytics-utils.browser.es.js"
},
"scripts": {
"test": "ava -v",
"watch": "rollup -w -c scripts/rollup.config.browser.es.js",
"clean": "rimraf lib dist && mkdirp lib dist",
"rollup-cjs": "rollup -c scripts/rollup.config.cjs.js && rollup -c scripts/rollup.config.browser.cjs.js",
"rollup-es": "rollup -c scripts/rollup.config.es.js && rollup -c scripts/rollup.config.browser.es.js",
"rollup-iife": "rollup -c scripts/rollup.config.iife.js",
"rollup": "npm-run-all --parallel rollup-cjs rollup-es rollup-iife",
"minify-dist": "uglifyjs -mc < dist/analytics-utils.js > dist/analytics-utils.min.js",
"build": "npm-run-all clean rollup minify-dist",
"publish": "git push origin && git push origin --tags",
"release:patch": "npm version patch && npm publish",
"release:minor": "npm version minor && npm publish",
"release:major": "npm version major && npm publish",
"build:cjs": "babel lib --out-dir dist --ignore test.js",
"build:es": "babel lib --out-dir dist --ignore test.js",
"build": "shx rm -f lib/index.js && create-index --ignoreUnsafe -r lib && npm run build:cjs",
"watch": "babel lib --out-dir dist --ignore test.js --watch",
"es": "babel-node ./testtwo.js"
"release:major": "npm version major && npm publish"
},

@@ -20,28 +31,29 @@ "keywords": [

],
"author": "David Wells",
"license": "MIT",
"files": [
"dist",
"lib",
"dist",
"package.json",
"package-lock.json",
"README.md"
],
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-plugin-transform-es2015-modules-simple-commonjs": "^0.3.0",
"create-index": "^2.3.0",
"shx": "^0.3.2"
"@ampproject/rollup-plugin-closure-compiler": "^0.8.5",
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.3.1",
"markdown-magic": "^0.1.25",
"mkdirp": "^0.5.1",
"npm-run-all": "^4.1.5",
"rimraf": "^2.6.3",
"rollup": "^1.1.2",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-babel-minify": "^7.0.0",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-node-builtins": "^2.1.2",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-replace": "^2.1.0",
"rollup-plugin-size-snapshot": "^0.8.0",
"rollup-plugin-strip-banner": "^0.2.0",
"rollup-plugin-terser": "^4.0.3",
"rollup-plugin-uglify": "^6.0.2",
"uglify-js": "^3.4.9"
},
"babel": {
"presets": [
[
"env",
{
"modules": false
}
]
]
},
"gitHead": "750363d669a8ea172f988c798f11f742a1d53abe"
"gitHead": "d4a3a1abd696728911b84d8d9a3239c432362397"
}

@@ -5,5 +5,17 @@ # Analytics Utility functions

## Install
```bash
npm install analytics-utils --save
```
Or as a script tag:
```html
<script src="https://unpkg.com/analytics-utils/dist/analytics-utils.min.js"></script>
```
## Special thanks
- [A small guide to create extra small libraries](https://medium.com/@kelin2025/writing-js-libraries-less-than-1tb-size-6342da0c006a)
- [How to write and build JS libraries in 2018](https://medium.com/@kelin2025/so-you-wanna-use-es6-modules-714f48b3a953)
- [How to write and build JS libraries in 2018](https://medium.com/@kelin2025/so-you-wanna-use-es6-modules-714f48b3a953)
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