🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

can-fragment

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-fragment

Create a fragment from lots of stuff

1.0.0
Version published
Weekly downloads
679
22.78%
Maintainers
1
Weekly downloads
 
Created

can-fragment

Build Status

Create document fragments from lots of things

Usage

ES6 use

With StealJS, you can import this module directly in a template that is autorendered:

import plugin from 'can-fragment';

CommonJS use

Use require to load can-fragment and everything else needed to create a template that uses can-fragment:

var plugin = require("can-fragment");

Standalone use

Load the global version of the plugin:

<script src='./node_modules/can-fragment/dist/global/can-fragment.js'></script>

FAQs

Package last updated on 24 May 2018

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