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

calendar-link

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calendar-link - npm Package Compare versions

Comparing version 0.9.0 to 1.0.0

dist/index.d.ts

128

package.json
{
"name": "calendar-link",
"version": "0.9.0",
"description": "",
"keywords": [],
"main": "dist/calendar-link.umd.js",
"module": "dist/calendar-link.es5.js",
"typings": "dist/types/calendar-link.d.ts",
"version": "1.0.0",
"main": "dist/index.js",
"files": [
"dist"
],
"types": "dist/index.d.ts",
"repository": "git@github.com:AnandChowdhary/calendar-link",
"author": "Anand Chowdhary <anandchowdhary@gmail.com>",
"repository": {
"type": "git",
"url": ""
},
"license": "MIT",
"engines": {
"node": ">=6.0.0"
},
"scripts": {
"lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
"prebuild": "rimraf dist",
"build": "tsc --module UMD && rollup -c rollup.config.ts && typedoc --out docs --target es6 --theme minimal --mode file src",
"start": "rollup -c rollup.config.ts -w",
"test": "jest --coverage",
"test:watch": "jest --coverage --watch",
"test:prod": "npm run lint && npm run test -- --no-cache",
"deploy-docs": "ts-node tools/gh-pages-publish",
"report-coverage": "cat ./coverage/lcov.info | coveralls",
"commit": "git-cz",
"semantic-release": "semantic-release",
"semantic-release-prepare": "ts-node tools/semantic-release-prepare",
"precommit": "lint-staged",
"travis-deploy-once": "travis-deploy-once"
"build": "tsc",
"build-test": "yarn build && yarn test-without-coverage",
"start": "concurrently 'yarn prettier-watch' 'yarn watch'",
"watch": "onchange '*.{ts,json}' -- yarn test-without-coverage",
"prettier-watch": "onchange '**/*.{ts,json}' -- prettier --write {{changed}}",
"test": "jest --coverage --coverageReporters=text-lcov | coveralls",
"test-without-reporting": "jest --coverage",
"test-without-coverage": "jest"
},
"lint-staged": {
"{src,test}/**/*.ts": [
"prettier --write",
"git add"
]
"devDependencies": {
"@types/jest": "^24.0.11",
"concurrently": "^4.1.0",
"coveralls": "^3.0.3",
"jest": "^24.5.0",
"onchange": "^5.2.0",
"prettier": "^1.16.4",
"ts-jest": "^24.0.0",
"typescript": "^3.3.4000"
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
}
},
"jest": {
"roots": [
"<rootDir>"
],
"transform": {
".(ts|tsx)": "ts-jest"
"^.+\\.tsx?$": "ts-jest"
},
"testEnvironment": "node",
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"moduleFileExtensions": [

@@ -61,67 +46,8 @@ "ts",

"node"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/test/"
],
"coverageThreshold": {
"global": {
"branches": 90,
"functions": 95,
"lines": 95,
"statements": 95
}
},
"collectCoverageFrom": [
"src/*.{js,ts}"
]
},
"prettier": {
"semi": false,
"singleQuote": true
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"devDependencies": {
"@commitlint/cli": "^7.1.2",
"@commitlint/config-conventional": "^7.1.2",
"@types/jest": "^23.3.2",
"@types/node": "^10.11.0",
"colors": "^1.3.2",
"commitizen": "^3.0.0",
"coveralls": "^3.0.2",
"cross-env": "^5.2.0",
"cz-conventional-changelog": "^2.1.0",
"husky": "^1.0.1",
"jest": "^23.6.0",
"jest-config": "^23.6.0",
"lint-staged": "^8.0.0",
"lodash.camelcase": "^4.3.0",
"prettier": "^1.14.3",
"prompt": "^1.0.0",
"replace-in-file": "^3.4.2",
"rimraf": "^2.6.2",
"rollup": "^1.1.0",
"rollup-plugin-commonjs": "^9.1.8",
"rollup-plugin-json": "^3.1.0",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-typescript2": "^0.19.0",
"semantic-release": "^15.9.16",
"travis-deploy-once": "^5.0.9",
"ts-jest": "^23.10.2",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.15.0",
"tslint-config-standard": "^8.0.1",
"typedoc": "^0.14.1",
"typescript": "^3.0.3"
},
"dependencies": {
"dayjs": "^1.8.0",
"object-to-querystring": "^1.0.8"
"dayjs": "^1.8.11",
"query-string": "^6.4.2"
}
}
# Calendar Link
[![Greenkeeper badge](https://badges.greenkeeper.io/AnandChowdhary/calendar-link.svg)](https://greenkeeper.io/)
[![Travis](https://img.shields.io/travis/AnandChowdhary/calendar-link.svg)](https://travis-ci.org/AnandChowdhary/calendar-link)

@@ -17,16 +16,16 @@ [![Coverage Status](https://coveralls.io/repos/github/AnandChowdhary/calendar-link/badge.svg?branch=master)](https://coveralls.io/github/AnandChowdhary/calendar-link?branch=master)

```js
import calendarLink from 'calendar-link'
import { google, outlook, yahoo } from "calendar-link"
// Set event as an object
const event = {
title: 'My birthday party',
description: 'Be there!',
starts: '2019-12-29 18:00:00 +0100',
duration: [3, 'hours']
title: "My birthday party",
description: "Be there!",
starts: "2019-12-29 18:00:00 +0100",
duration: [3, "hour"]
};
// Then fetch the link
calendarLink.google(event); // https://calendar.google.com/calendar/render...
calendarLink.outook(event); // https://outlook.live.com/owa/...
calendarLink.yahoo(event); // https://calendar.yahoo.com/?v=60&title=...
google(event); // https://calendar.google.com/calendar/render...
outook(event); // https://outlook.live.com/owa/...
yahoo(event); // https://calendar.yahoo.com/?v=60&title=...
```

@@ -33,0 +32,0 @@

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