expand-path
Advanced tools
Comparing version 1.0.1 to 1.0.3
{ | ||
"name": "expand-path", | ||
"version": "1.0.1", | ||
"version": "1.0.3", | ||
"description": "Super light-weight brace expansion for node", | ||
@@ -5,0 +5,0 @@ "main": "lib/expand-path.js", |
@@ -1,2 +0,2 @@ | ||
[![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) | ||
[![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) ![Size](https://img.shields.io/badge/size-1.7kb-brightgreen.svg) | ||
@@ -19,2 +19,21 @@ # expand-path | ||
### Node | ||
```js | ||
var expand = require('expand-path'); | ||
``` | ||
### Browser | ||
Use whatever serving mechanism you prefer and serve `dist/expand-path.js` or `dist/expand-path.min.js`, then access it globally with `expandPath`. | ||
```html | ||
<script src="/dist/expand-path.js"></script> | ||
<script> | ||
var paths = expandPath('foo.ba[r,z]'); | ||
</script> | ||
``` | ||
This script is a measly 1.7kb minified. | ||
### With object paths | ||
@@ -21,0 +40,0 @@ |
@@ -16,3 +16,3 @@ module.exports = { | ||
launch_in_ci: ['PhantomJS'], | ||
launch_in_dev: ['PhantomJS', 'Chrome'], | ||
launch_in_dev: ['PhantomJS', 'Chrome', 'Firefox', 'Safari'], | ||
reporter: 'dot' | ||
@@ -19,0 +19,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16285
77