calendar-json

3.2.0 • Public • Published

calendar-json

JSON calendar for Node

Requires access to the crypto library for its' randomBytes function.

Current plans are to allow for a custom UID function provided by the user to allow generation of UIDs instead.

Usage:

const path = require('path');
const Calendar = require('calendar-json');
const calendar = new Calendar(path.join(__dirname, 'cal'))

ES7:

import path from 'path'
import Calendar from 'calendar-json'
let calendar = new Calendar(path.join(__dirname, 'cal'))

Both of the above are functionally the same, with the exception of node and/or V8 versions.

See tests/test.js for more tests.

Readme

Keywords

Package Sidebar

Install

npm i calendar-json

Weekly Downloads

8

Version

3.2.0

License

ISC

Last publish

Collaborators

  • zanehannanau