node-gulp-4.0.2+~cs38.20.35/000077500000000000000000000000001415667007300150405ustar00rootroot00000000000000node-gulp-4.0.2+~cs38.20.35/.editorconfig000066400000000000000000000005561415667007300175230ustar00rootroot00000000000000; EditorConfig is awesome: http://EditorConfig.org ; top-most EditorConfig file root = true ; base rules [*] indent_style = space indent_size = 2 charset = utf-8 end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true ; Dont remove trailing whitespace from markdown ; files since it messes up newlines [*.md] trim_trailing_whitespace = false node-gulp-4.0.2+~cs38.20.35/.gitattributes000066400000000000000000000003551415667007300177360ustar00rootroot00000000000000# Enforce Unix newlines *.* text eol=lf *.css text eol=lf *.html text eol=lf *.js text eol=lf *.json text eol=lf *.less text eol=lf *.md text eol=lf *.yml text eol=lf *.jpg binary *.gif binary *.png binary *.jpeg binarynode-gulp-4.0.2+~cs38.20.35/.jshintrc000066400000000000000000000004031415667007300166620ustar00rootroot00000000000000{ "esnext": true, "boss": true, "curly": true, "eqeqeq": true, "eqnull": true, "immed": true, "indent": 2, "latedef": true, "newcap": true, "noarg": true, "node": true, "sub": true, "undef": true, "unused": true, "mocha": true } node-gulp-4.0.2+~cs38.20.35/.npmignore000066400000000000000000000010741415667007300170410ustar00rootroot00000000000000# Numerous always-ignore extensions *.csv *.dat *.diff *.err *.gz *.log *.orig *.out *.pid *.rar *.rej *.seed *.swo *.swp *.vi *.yo-rc.json *.zip *~ .ruby-version lib-cov npm-debug.log # Always-ignore dirs /bower_components/ /node_modules/ /temp/ /tmp/ /vendor/ _gh_pages # OS or Editor folders *.esproj *.komodoproject .komodotools *.sublime-* ._* .cache .DS_Store .idea .project .settings .tmproj nbproject Thumbs.db # grunt-html-validation validation-status.json validation-report.json # misc TODO.md # npmignore test test.js .verb.md .gitattributes .editorconfig node-gulp-4.0.2+~cs38.20.35/.travis.yml000066400000000000000000000002041415667007300171450ustar00rootroot00000000000000sudo: false os: - linux - osx language: node_js node_js: - node - '8' - '7' - '6' - '5' - '4' - '0.12' - '0.10' node-gulp-4.0.2+~cs38.20.35/.verb.md000066400000000000000000000007601415667007300164010ustar00rootroot00000000000000# {%= name %} {%= badge("fury") %} > {%= description %} {%= include("install-npm", {save: true}) %} ## Usage ```js var initial = require('{%= name %}'); initial(['a', 'b', 'c', 'd', 'e', 'f']); //=> ['a', 'b', 'c', 'd', 'e'] initial(['a', 'b', 'c', 'd', 'e', 'f'], 1); //=> ['a', 'b', 'c', 'd', 'e'] initial(['a', 'b', 'c', 'd', 'e', 'f'], 2); //=> ['a', 'b', 'c', 'd'] ``` ## Author {%= include("author") %} ## License {%= copyright() %} {%= license() %} *** {%= include("footer") %} node-gulp-4.0.2+~cs38.20.35/LICENSE-MIT000066400000000000000000000021101415667007300164660ustar00rootroot00000000000000The MIT License (MIT) Copyright (c) 2014 Jon Schlinkert, contributors. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. node-gulp-4.0.2+~cs38.20.35/README.md000066400000000000000000000016111415667007300163160ustar00rootroot00000000000000# array-initial [![NPM version](https://badge.fury.io/js/array-initial.svg)](http://badge.fury.io/js/array-initial) > Get all but the last element or last n elements of an array. ## Install with [npm](npmjs.org) ```bash npm i array-initial --save ``` ## Usage ```js var initial = require('array-initial'); initial(['a', 'b', 'c', 'd', 'e', 'f']); //=> ['a', 'b', 'c', 'd', 'e'] initial(['a', 'b', 'c', 'd', 'e', 'f'], 1); //=> ['a', 'b', 'c', 'd', 'e'] initial(['a', 'b', 'c', 'd', 'e', 'f'], 2); //=> ['a', 'b', 'c', 'd'] ``` ## Author **Jon Schlinkert** + [github/jonschlinkert](https://github.com/jonschlinkert) + [twitter/jonschlinkert](http://twitter.com/jonschlinkert) ## License Copyright (c) 2014 Jon Schlinkert Released under the MIT license *** _This file was generated by [verb](https://github.com/assemble/verb) on December 12, 2014. To update, run `npm i -g verb && verb`._ node-gulp-4.0.2+~cs38.20.35/index.js000066400000000000000000000010051415667007300165010ustar00rootroot00000000000000/*! * array-initial * * Copyright (c) 2014 Jon Schlinkert, contributors. * Licensed under the MIT license. */ var isNumber = require('is-number'); var slice = require('array-slice'); module.exports = function arrayInitial(arr, num) { if (!Array.isArray(arr)) { throw new Error('array-initial expects an array as the first argument.'); } if (arr.length === 0) { return null; } return slice(arr, 0, arr.length - (isNumber(num) ? num : 1)); }; node-gulp-4.0.2+~cs38.20.35/package.json000066400000000000000000000016451415667007300173340ustar00rootroot00000000000000{ "name": "array-initial", "description": "Get all but the last element or last n elements of an array.", "version": "1.1.0", "homepage": "https://github.com/jonschlinkert/array-initial", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git://github.com/jonschlinkert/array-initial.git" }, "bugs": { "url": "https://github.com/jonschlinkert/array-initial/issues" }, "license": "MIT", "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha -R spec" }, "devDependencies": { "mocha": "^2.0.0", "should": "^11.2.1" }, "dependencies": { "array-slice": "^1.0.0", "is-number": "^4.0.0" }, "keywords": [ "array", "fast", "first", "initial", "javascript", "js", "last", "rest", "util", "utility", "utils" ] } node-gulp-4.0.2+~cs38.20.35/test.js000066400000000000000000000015731415667007300163630ustar00rootroot00000000000000/*! * array-initial * * Copyright (c) 2014 Jon Schlinkert, contributors. * Licensed under the MIT License */ 'use strict'; var should = require('should'); var initial = require('./'); describe('initial', function () { it('should throw an error if the value passed is not an array:', function () { (function () { initial(); }).should.throw('array-initial expects an array as the first argument.'); }); it('should return all but the last element in the array:', function () { initial(['a', 'b', 'c', 'd', 'e', 'f']).should.eql(['a', 'b', 'c', 'd', 'e']); initial(['a', 'b', 'c', 'd', 'e', 'f'], 1).should.eql(['a', 'b', 'c', 'd', 'e']); }); it('should all but the last n elements in the array:', function () { initial(['a', 'b', 'c', 'd', 'e', 'f'], 2).should.eql(['a', 'b', 'c', 'd']); }); });