https://github.com/imsobear/monospace
get monospace string by space or dots
https://github.com/imsobear/monospace
Last synced: 3 months ago
JSON representation
get monospace string by space or dots
- Host: GitHub
- URL: https://github.com/imsobear/monospace
- Owner: imsobear
- License: mit
- Created: 2015-10-22T13:52:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-22T14:05:18.000Z (over 9 years ago)
- Last Synced: 2025-01-22T20:51:30.768Z (5 months ago)
- Language: JavaScript
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# monospace [](https://travis-ci.org/imsobear/monospace)
> get monospace string by space or dots
## Install
```bash
npm install --save monospace
```## Example
```javascript
var monospace = require('monospace');monospace("123456", 6); // 123456
monospace("123456789", 6); // 123...
monospace("123", 6); // 123+three spaces
```## Test
```bash
npm test
```## License
MIT © 2015 sobear