# cmd-util

> Utilities for common module definition.

Latest version **0.3.13** (published 2014-05-13) · 0 weekly downloads

## Install

```sh
npm install cmd-util
pnpm add cmd-util
yarn add cmd-util
bun add cmd-util
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.13 |
| Published | 2014-05-13 |
| First published | 2013-02-01 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Hsiaoming Yang |
| Maintainers | lepture, popomore |
| Keywords | cmd, spm, module, ast |

## Links

- npm: https://www.npmjs.com/package/cmd-util
- Repository: https://github.com/spmjs/cmd-util
- Issues: https://github.com/spmjs/cmd-util/issues
- npm.io page: https://npm.io/package/cmd-util

## Dependencies (1)

- [uglify-js](https://npm.io/package/uglify-js.md) ~2.3.6

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 0.3.13 (latest) — 2014-05-13
- 0.3.12 — 2013-08-05
- 0.3.11 — 2013-07-23
- 0.3.10 — 2013-06-18
- 0.3.9 — 2013-06-09
- 0.3.8 — 2013-05-22
- 0.3.7 — 2013-05-21
- 0.3.6 — 2013-04-19
- 0.3.5 — 2013-04-08
- 0.3.4 — 2013-03-29
- 0.3.3 — 2013-03-19
- 0.3.2 — 2013-03-16
- 0.3.1 — 2013-03-14
- 0.3.0 — 2013-03-13
- 0.2.0 — 2013-03-02
- … 6 more at https://npm.io/package/cmd-util/versions

## README

# cmd-util

Utilities for common module definition.

---------------------------

This package is designed for developers, if you are a user, don't read this.

[![Build Status](https://travis-ci.org/spmjs/cmd-util.png?branch=master)](https://travis-ci.org/spmjs/cmd-util)
[![Coverage Status](https://coveralls.io/repos/spmjs/cmd-util/badge.png?branch=master)](https://coveralls.io/r/spmjs/cmd-util)

## Implements

- **ast**: parse cmd javascript code, do whatever you want.
- **css**: css parser
- **iduri**: solutions for id and uri.


## Install

```
$ npm install cmd-util
```

## Contribute

Yes, please do contribute. But before this, you should read our [Contributing Guide](https://github.com/spmjs/cmd-util/blob/master/CONTRIBUTING.md).

## Changelog

**August 12th, 2013** `0.3.13`

1. @import without quote

**August 5th, 2013** `0.3.12`

1. Can modify `require.async`

**July 23rd, 2013** `0.3.11`

1. Parsing dependencies for `define(id, factory)`

**June 18th, 2013** `0.3.10`

1. Passing parent node to filter for css.stringify

**Jun 9th, 2013** `0.3.9`

1. Update uglify js dependency.

**May 22nd, 2013** `0.3.8`

1. Little fix [#4](https://github.com/spmjs/cmd-util/issues/4)

**May 21st, 2013** `0.3.7`

1. Family can has - in its name.

**April 19th, 2013** `0.3.6`

1. Support parse dependency of `define('id', null, factory)` #2

**April 8th, 2013** `0.3.5`

1. Fix parse dependency of `require('foo')('bar')`

**Mar 29, 2013** `0.3.4`

1. Only parse `require`, don't parse `require.async`

**Mar 19, 2013** `0.3.3`

1. Enhancement of ast. Delete a dependency by `return null`

**Mar 16, 2013** `0.3.2`

1. add `iduri.validateFormat`

**Mar 14, 2013** `0.3.1`

1. make `css.walk` the right way
2. add `css.strigify`

**Mar 14, 2013** `0.3.0`

1. add css parser

**Mar 2, 2013** `0.2.0`

1. ast.modify return ast instead of string
2. iduri.resolve only resolve cmd uri
3. rewrite ast parser

**Feb 1, 2013** `0.1.0`

This first version.

---
_Source: https://npm.io/package/cmd-util · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
