# dustmotes-substr

> substr helper

Latest version **0.0.1** (published 2013-11-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install dustmotes-substr
pnpm add dustmotes-substr
yarn add dustmotes-substr
bun add dustmotes-substr
```

## 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.0.1 |
| Published | 2013-11-17 |
| First published | 2013-11-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 19 |
| Author | Richard Ragan |
| Maintainers | rrragan |

## Links

- npm: https://www.npmjs.com/package/dustmotes-substr
- Repository: https://github.com/rragan/dust-motes
- npm.io page: https://npm.io/package/dustmotes-substr

## Recent versions

- 0.0.1 (latest) — 2013-11-17

## README

# substr helper, Output a substring of a string

## Definition

```
{@substr str=string begin=b end=e len=l /}

str - String
begin - starting character position
end - ending character position
len - length of substring

```

## Example

```
{@substr str="abcdefg" begin="0" end="3"/}
  Output: abc

{@substr str="abcdefg" begin="1" len="4"/}
  Output: bcde
```

## Usage
Depends on dustjs-helpers module to be loaded first since it defines
the dust.helpers property.

In node.js:
require('dustmotes-iterate');

In browser:
If not using require, load the JS some other way and call it with the dust object. As noted earlier,
dustjs-helpers must be loaded earlier.

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