# Install smartwrap with npm

Textwrap for javascript/nodejs. Correctly handles wide characters (宽字符) and emojis (😃). Wraps strings with option to break on words. Version 2.0.2 via npm; verified 2021-05-15.

## Install

```sh
sudo av install npm:smartwrap
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g smartwrap
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:smartwrap
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/smartwrap>
- **Version:** 2.0.2
- **Source summary:** Textwrap for javascript/nodejs. Correctly handles wide characters (宽字符) and emojis (😃). Wraps strings with option to break on words.
- **Homepage:** <https://github.com/tecfu/smartwrap#readme>
- **Repository:** <https://github.com/tecfu/smartwrap>
- **Upstream docs:** <https://github.com/tecfu/smartwrap#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/smartwrap/-/smartwrap-2.0.2.tgz>
- **Issue tracker:** <https://github.com/tecfu/smartwrap/issues>
- **Published:** 2021-05-15T17:58:32.796Z
- **Last updated:** 2021-05-15T17:58:32.796Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- smartwrap (cli)
- smartwrap (alias)

## Dependencies

- array.prototype.flat
- breakword
- grapheme-splitter
- strip-ansi
- wcwidth
- yargs

## Build dependencies

- chai
- eslint
- grunt
- grunt-cli
- grunt-mocha-test
- husky
- mocha

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.0.2
- Package-manager updated: 2021-05-15
- Local data: ok
- Upstream repository: https://github.com/tecfu/smartwrap
- warning: The package-manager record has not been updated in over a year.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for smartwrap. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 2.0.2
- **Version Count:** 24
- **Maintainers:** tecfu
- **Author:** tecfu
- **Publisher:** tecfu
- **Engines:** Node: >=6
- **Integrity:** sha512-vCsKNQxb7PnCNd2wY1WClWifAc2lwqsG8OaswpJkVJsvMGcnEntdTCDajZCkk93Ay1U3t/9puJmb525Rg5MZBA==
- **Shasum:** 7e25d3dd58b51c6ca4aba3a9e391650ea62698a4
- **Unpacked Size:** 35,716
- **File Count:** 0
- **Created At:** 2017-05-19T00:43:44.567Z
- **Latest Published At:** 2021-05-15T17:58:32.796Z
- **Modified At:** 2022-06-26T21:26:04.246Z


## Related links

- [Web development packages](https://www.automicvault.com/pkg/web-dev-tools/) - Matched curated package taxonomy and local package facts.
- [tty-table](https://www.automicvault.com/pkg/npm/tty-table/) - Local package facts share a topical domain. Shared terms: ansi, cli, control, developer, developer-tools.
- [tachometer](https://www.automicvault.com/pkg/npm/tachometer/) - Local package facts share a topical domain. Shared terms: ansi, cli, control, developer, developer-tools.
- [stream-throttle](https://www.automicvault.com/pkg/npm/stream-throttle/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, control, developer, developer-tools, javascript.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
