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

npm-zepto

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-zepto

An automatic CommonJS Zepto wrapper

  • 1.1.7
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
45
increased by28.57%
Maintainers
1
Weekly downloads
 
Created
Source

npm-zepto

An automatic CommonJS Zepto wrapper

Current zepto version: 1.1.6

See zeptojs.com for an extended introduction and documentation.

Zepto.js and npm-zepto are licensed under the terms of the MIT License.

Installing

$ npm install npm-zepto

Then you can include it using CommonJS as you pleased.

var zepto = require('npm-zepto');

We have desided compiling npm-zepto as a CommonJS type library instead a UMD. Nonetheless if you need a AMD library you can clone the repo an run the amd_build script in order to buil a RequiredJS compatible Zepto library.

Advanced users

Maybe you need a local or custom build of zepto, right? Ok, just clone this repo and build your npm-zepto yourself.

Setup

On your favorite git interface make the following:

$ git clone git@github.com:Nytramr/npm-zepto.git
$ cd npm-zepto
$ git submodule update --init

Now you have in your computer a copy of npm-zepto.

Default build

$ npm install

Using the local copy of npm-zepto

$ npm link

Depending on your npm configuration, it is possible that you must run npm link with sudo

Build a specific version of zepto

In order to build a specific version of zepto you have to change the zepto submodule commit. For instance, this command secuence compiles npm-zepto with zepto@1.1.3

$ cd npm-zepto/zepto
$ git checkout v1.1.3
$ cd ..
$ npm install

Build a custom version of zepto

In order to build a custom version of zepto like it is explained here you must edit the script/build bash file. An explample bellow.

#!/usr/bin/env sh

cd zepto
npm install
MODULES="zepto event ajax form ie detect fx fx_methods assets data" npm run-script dist
cd ..

if [ -f index.js ]; then
  rm index.js;
fi

cat zepto/dist/zepto.js _index.js > index.js

Keywords

FAQs

Package last updated on 22 Jan 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