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

periodicjs.core.utilities

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

periodicjs.core.utilities

A group of utility functions for restarting periodic's express application and helper functions to manipulate strings and other data structures

  • 5.9.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-73.08%
Maintainers
1
Weekly downloads
 
Created
Source

periodicjs.core.utilities

Periodic's Core Utilities module contains a group of utility functions for restarting periodic's express application and helper functions to manipulate strings and other data structures

API Documentation

Installation

$ npm install periodicjs.core.utilities

This is a part of Periodic's core.

Usage

Querying for tag

JavaScript

var Utilities = require('periodicjs.core.utilities'),
	CoreUtilities = new Utilities(resources),
	Tag = mongoose.model('Tag');
req.controllerData = (req.controllerData) ? req.controllerData : {};

var createTag = function (req, res) {
	var newtag = CoreUtilities.removeEmptyObjectValues(req.body);
		newtag.name = CoreUtilities.makeNiceName(newtag.title);
		newtag.author = req.user._id;

	CoreController.createModel({
		model: Tag,
		newdoc: newtag,
		res: res,
		req: req,
		successredirect: '/p-admin/tag/edit/',
		appendid: true
	});
};

##Development Make sure you have grunt installed

$ npm install -g grunt-cli

Then run grunt watch

$ grunt watch

For generating documentation

$ grunt doc
$ jsdoc2md lib/**/*.js index.js > doc/api.md

##Notes

Keywords

FAQs

Package last updated on 30 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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