├── .travis.yml ├── CONTRIBUTING.md ├── .gitignore ├── .gitattributes ├── test.js ├── index.js ├── .jshintrc ├── .editorconfig ├── .verb.md ├── package.json ├── README.md └── LICENSE /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | node_js: 4 | - "0.10" 5 | - "0.12" 6 | - "iojs" 7 | git: 8 | depth: 10 -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Please see the [Contributing to Assemble](http://assemble.io/contributing) guide for information on contributing to this project. 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.DS_Store 2 | *.sublime-* 3 | _gh_pages 4 | bower_components 5 | node_modules 6 | npm-debug.log 7 | temp 8 | test/actual 9 | tmp 10 | TODO.md 11 | vendor -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Enforce Unix newlines 2 | * text eol=lf 3 | 4 | # binaries 5 | *.ai binary 6 | *.psd binary 7 | *.jpg binary 8 | *.gif binary 9 | *.png binary 10 | *.jpeg binary -------------------------------------------------------------------------------- /test.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var should = require('should'); 4 | var utils = require('./'); 5 | 6 | describe('assemble-utils', function () { 7 | it('should have utils', function () { 8 | utils.should.have.properties(['session', 'sessionify']); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * assemble-utils 3 | * 4 | * Copyright (c) 2014-2015, Brian Woodward. 5 | * Licensed under the MIT License. 6 | */ 7 | 8 | 'use strict'; 9 | 10 | module.exports = { 11 | session: require('session-cache'), 12 | sessionify: require('sessionify') 13 | }; 14 | -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "asi": false, 3 | "boss": true, 4 | "curly": true, 5 | "eqeqeq": true, 6 | "eqnull": true, 7 | "esnext": true, 8 | "immed": true, 9 | "latedef": false, 10 | "laxcomma": false, 11 | "mocha": true, 12 | "newcap": true, 13 | "noarg": true, 14 | "node": true, 15 | "sub": true, 16 | "undef": true, 17 | "unused": true 18 | } -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | end_of_line = lf 7 | charset = utf-8 8 | indent_size = 2 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | 12 | [*.json] 13 | indent_style = space 14 | indent_size = 2 15 | 16 | [*.yml] 17 | indent_style = space 18 | indent_size = 2 19 | 20 | [*.md] 21 | indent_style = space 22 | indent_size = 2 23 | trim_trailing_whitespace = false 24 | 25 | [test/fixtures/*] 26 | trim_trailing_whitespace = false 27 | insert_final_newline = false -------------------------------------------------------------------------------- /.verb.md: -------------------------------------------------------------------------------- 1 | # {%= name %} {%= badge("fury") %} {%= badge("travis") %} 2 | 3 | > {%= description %} 4 | 5 | {%= include("install-npm", {save: true}) %} 6 | 7 | ## Running tests 8 | {%= include("tests") %} 9 | 10 | ## Usage 11 | 12 | ```js 13 | var utils = require('{%= name %}'); 14 | ``` 15 | 16 | ## API 17 | {%= apidocs("index.js") %} 18 | 19 | ## Contributing 20 | Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue]({%= bugs.url %}) 21 | 22 | ## Author 23 | {%= include("author") %} 24 | 25 | ## License 26 | {%= copyright() %} 27 | {%= license() %} 28 | 29 | *** 30 | 31 | {%= include("footer") %} 32 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "assemble-utils", 3 | "description": "Utilies for Assemble", 4 | "version": "0.2.1", 5 | "homepage": "https://github.com/assemble/assemble-utils", 6 | "author": { 7 | "name": "Brian Woodward", 8 | "url": "https://github.com/doowb" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "git://github.com/assemble/assemble-utils.git" 13 | }, 14 | "bugs": { 15 | "url": "https://github.com/assemble/assemble-utils/issues" 16 | }, 17 | "license": { 18 | "type": "MIT", 19 | "url": "https://github.com/assemble/assemble-utils/blob/master/LICENSE" 20 | }, 21 | "files": [ 22 | "index.js" 23 | ], 24 | "main": "index.js", 25 | "engines": { 26 | "node": ">=0.10.0" 27 | }, 28 | "scripts": { 29 | "test": "mocha" 30 | }, 31 | "dependencies": { 32 | "session-cache": "^0.1.3", 33 | "sessionify": "^0.1.0" 34 | }, 35 | "devDependencies": { 36 | "mocha": "*", 37 | "should": "*" 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # assemble-utils [![NPM version](https://badge.fury.io/js/assemble-utils.svg)](http://badge.fury.io/js/assemble-utils) [![Build Status](https://travis-ci.org/assemble/assemble-utils.svg)](https://travis-ci.org/assemble/assemble-utils) 2 | 3 | > Utilies for Assemble 4 | 5 | ## Install with [npm](npmjs.org) 6 | 7 | ```bash 8 | npm i assemble-utils --save 9 | ``` 10 | 11 | ## Running tests 12 | Install dev dependencies. 13 | 14 | ```bash 15 | npm i -d && npm test 16 | ``` 17 | 18 | ## Usage 19 | 20 | ```js 21 | var utils = require('assemble-utils'); 22 | ``` 23 | 24 | ## API 25 | 26 | 27 | ## Contributing 28 | Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/assemble/assemble-utils/issues) 29 | 30 | ## Author 31 | 32 | **Brian Woodward** 33 | 34 | + [github/doowb](https://github.com/doowb) 35 | + [twitter/doowb](http://twitter.com/doowb) 36 | 37 | ## License 38 | Copyright (c) 2015 Brian Woodward 39 | Released under the MIT license 40 | 41 | *** 42 | 43 | _This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 12, 2015._ -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014-2015, Brian Woodward. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | --------------------------------------------------------------------------------