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

d3plus-common

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d3plus-common

Common functions and methods used across D3plus modules.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.5K
decreased by-55.15%
Maintainers
1
Weekly downloads
 
Created
Source

d3plus-common

NPM Release Build Status Dependency Status Dependency Status

A starter environment for D3plus modules.

Installation Options

NPM

npm install d3plus-common

Browser

In a vanilla environment, a d3plus_common global is exported. To use a compiled version hosted on d3plus.org that includes all dependencies:

<script src="https://d3plus.org/js/d3plus-common.v0.1.min.js"></script>

Otherwise, click here to download the latest release.

AMD and CommonJS

The released bundle natively supports both AMD and CommonJS, and vanilla environments.

Custom Builds

The source code is written using standard import and export statements. Create a custom build using Rollup or your preferred bundler. Take a look at the index.js file to see the modules exported.


API Reference

constant(value)

Wraps non-function variables in a simple return function.

Kind: global function

ParamTypeDescription
valueArray | Number | Object | StringThe value to be returned from the function.

Example (this)

constant(42);
    

Example (returns this)

function() {
  return 42;
}

Keywords

FAQs

Package last updated on 04 May 2016

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