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

expand-path

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expand-path - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

dist/expand-path.js

@@ -1,2 +0,2 @@

(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.expand = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.expandPath = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
var Consumed = require('consumed');

@@ -3,0 +3,0 @@ var braces = {

@@ -1,1 +0,1 @@

!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.expand=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){var d=a("consumed"),e={"[":"]","{":"}","<":">"},f=function(a,b){for(var c=0;c<b.length;c++)if(a.indexOf(b[c])>-1)return b[c]},g=function(a,b){return b+=a},h=function(a,b,c){return b.concat(a.map(g.bind(null,c)))};b.exports=function(a){var b=new d(a),c=f(a,["{","[","<"]);if(c){for(var i=[""];b.str.indexOf(c)>-1;){var j=b.consumeTill(c);j&&(i=i.map(g.bind(null,j)));var k=b.consumeTill(e[c],!0),l=k.replace(c,"").replace(e[c],"").split(/\s*,\s*/g);i=l.reduce(h.bind(null,i),[])}return i}return[a]}},{consumed:2}],2:[function(a,b,c){!function(){var a=function(a){this.str=a};a.prototype._updateString=function(a){this.str=this.str.replace(a,"")},a.prototype.consumeTill=function(a,b){var c=this.str.substring(0,this.str.indexOf(a)+(b?1:0));return this._updateString(c),c},a.prototype.consume=function(a){var b=this.str.match(a);return b?(this._updateString(a),b[0]):void 0},"object"==typeof b&&b.exports&&(b.exports=a),"undefined"!=typeof window&&(window.Consumed=a)}()},{}]},{},[1])(1)});
!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.expandPath=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){var d=a("consumed"),e={"[":"]","{":"}","<":">"},f=function(a,b){for(var c=0;c<b.length;c++)if(a.indexOf(b[c])>-1)return b[c]},g=function(a,b){return b+=a},h=function(a,b,c){return b.concat(a.map(g.bind(null,c)))};b.exports=function(a){var b=new d(a),c=f(a,["{","[","<"]);if(c){for(var i=[""];b.str.indexOf(c)>-1;){var j=b.consumeTill(c);j&&(i=i.map(g.bind(null,j)));var k=b.consumeTill(e[c],!0),l=k.replace(c,"").replace(e[c],"").split(/\s*,\s*/g);i=l.reduce(h.bind(null,i),[])}return i}return[a]}},{consumed:2}],2:[function(a,b,c){!function(){var a=function(a){this.str=a};a.prototype._updateString=function(a){this.str=this.str.replace(a,"")},a.prototype.consumeTill=function(a,b){var c=this.str.substring(0,this.str.indexOf(a)+(b?1:0));return this._updateString(c),c},a.prototype.consume=function(a){var b=this.str.match(a);return b?(this._updateString(a),b[0]):void 0},"object"==typeof b&&b.exports&&(b.exports=a),"undefined"!=typeof window&&(window.Consumed=a)}()},{}]},{},[1])(1)});
{
"name": "expand-path",
"version": "1.0.0",
"description": "Generate an array of paths from a single path with braces, ala brace expansion",
"version": "1.0.1",
"description": "Super light-weight brace expansion for node",
"main": "lib/expand-path.js",

@@ -6,0 +6,0 @@ "scripts": {

@@ -5,3 +5,3 @@ [![Build Status](https://travis-ci.org/tandrewnichols/expand-path.png)](https://travis-ci.org/tandrewnichols/expand-path) [![downloads](http://img.shields.io/npm/dm/expand-path.svg)](https://npmjs.org/package/expand-path) [![npm](http://img.shields.io/npm/v/expand-path.svg)](https://npmjs.org/package/expand-path) [![Code Climate](https://codeclimate.com/github/tandrewnichols/expand-path/badges/gpa.svg)](https://codeclimate.com/github/tandrewnichols/expand-path) [![Test Coverage](https://codeclimate.com/github/tandrewnichols/expand-path/badges/coverage.svg)](https://codeclimate.com/github/tandrewnichols/expand-path) [![dependencies](https://david-dm.org/tandrewnichols/expand-path.png)](https://david-dm.org/tandrewnichols/expand-path)

Generate an array of paths from a single path with braces, ala brace expansion
Super light-weight brace expansion for node

@@ -8,0 +8,0 @@ ## Installation

@@ -7,3 +7,3 @@ module.exports = {

browserifyOptions: {
standalone: 'expand'
standalone: 'expandPath'
}

@@ -10,0 +10,0 @@ }

Sorry, the diff of this file is not supported yet

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