A small library for padding strings in JavaScript. Marmalade-free.
![NPM version][shield-npm] ![Node.js version support][shield-node] ![Build status][shield-build] ![Code coverage][shield-coverage]
A small library for padding strings in JavaScript. Marmalade-free.
![NPM version][shield-npm] ![Node.js version support][shield-node] ![Build status][shield-build] ![Code coverage][shield-coverage]
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title>CSS Testing</title> | |
</head> | |
<body id="top"> | |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
for i in {0..255}; do echo "$i: $(tput setaf $i)reg $(tput bold)bld$(tput sgr0) $(tput sgr 0 1)$(tput setaf $i)und$(tput sgr0)"; done |
// An example of executing some actions before Pa11y runs. | |
// This example logs in to GitHub and runs tests on the | |
// user dashboard page. Note: this won't work if you have | |
// two-factor auth enabled. | |
'use strict'; | |
var pa11y = require('../..'); | |
// Create a test instance with some default options | |
var test = pa11y({ |
{ | |
//----------------------------------------------------------- | |
// Important information | |
// Name and version are required and together are treated as | |
// a unique identifier for a particular build. Name | |
// [http://npmjs.org/doc/json.html#name] and version | |
// [http://npmjs.org/doc/json.html#version] are strings. | |
"name": "mypackage", | |
"version": "0.1", |
// Example of running Pa11y in parallel. Now that I found | |
// this I realise it should definitely be in the examples | |
// in the repo! | |
// | |
// You'll need to install `async` and `pa11y`, probs in a | |
// package.json. This isn't perfect, might need some | |
// tweaking. Also runs in Node.js 4+ because I'm far too | |
// used to typing `const` and arrow functions now. | |
'use strict'; |
#!/usr/bin/env node | |
bigify = string => Array.from(string).map(letter => letter == ' ' ? ':blank:' : `:b${letter}:`).join('') | |
process.stdout.write(bigify(process.argv.slice(2).join(' '))); |
current_dir=`pwd`; | |
cd ~/Library/Application\ Support/Espresso/Sugars/; | |
echo "Installing Sugars:"; | |
if [ ! -d ./CSS3.sugar ]; then | |
echo "Installing CSS3.sugar..."; | |
git clone -q git://github.com/minimalweb/CSS3.sugar.git ./CSS3.sugar; | |
else | |
echo "CSS3.sugar already installed, attempting update..."; |