https://github.com/nuintun/cmd-helper
Utilities for common module definition modify from cmd-util
https://github.com/nuintun/cmd-helper
Last synced: 8 months ago
JSON representation
Utilities for common module definition modify from cmd-util
- Host: GitHub
- URL: https://github.com/nuintun/cmd-helper
- Owner: nuintun
- License: mit
- Created: 2014-04-29T06:02:52.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2017-04-21T02:09:25.000Z (about 9 years ago)
- Last Synced: 2024-08-10T23:15:27.243Z (almost 2 years ago)
- Language: JavaScript
- Homepage: http://nuintun.github.io/cmd-helper
- Size: 492 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cmd-helper
>Utilities for common module definition modify from cmd-util
>
>[![NPM Version][npm-image]][npm-url]
>[![Download Status][download-image]][npm-url]
>[![Travis Status][travis-image]][travis-url]
>[![Test Coverage][coveralls-image]][coveralls-url]
>[![Dependencies][david-image]][david-url]
### Implements
- **ast**: parse cmd javascript code, do whatever you want.
- **css**: css parser.
- **iduri**: solutions for id and uri.
### Install
```
$ npm install cmd-helper
```
### Introduction
```js
var cmd = require('cmd-helper'),
ast = cmd.ast,
css = cmd.css,
iduri = cmd.iduri;
// see the documentation for detailed usage !
iduri.addFileExt('tpl');
css.parse('body { color: block; }');
```
[travis-image]: http://img.shields.io/travis/nuintun/cmd-helper.svg?style=flat-square
[travis-url]: https://travis-ci.org/nuintun/cmd-helper
[coveralls-image]: http://img.shields.io/coveralls/nuintun/cmd-helper/master.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/nuintun/cmd-helper?branch=master
[david-image]: http://img.shields.io/david/nuintun/cmd-helper.svg?style=flat-square
[david-url]: https://david-dm.org/nuintun/cmd-helper
[npm-image]: http://img.shields.io/npm/v/cmd-helper.svg?style=flat-square
[npm-url]: https://www.npmjs.org/package/cmd-helper
[download-image]: http://img.shields.io/npm/dm/cmd-helper.svg?style=flat-square