Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coldnew/left-pad.clj
clojure/clojurescript port of left-pad: https://github.com/azer/left-pad
https://github.com/coldnew/left-pad.clj
clojure clojurescript left-pad leftpad
Last synced: about 1 month ago
JSON representation
clojure/clojurescript port of left-pad: https://github.com/azer/left-pad
- Host: GitHub
- URL: https://github.com/coldnew/left-pad.clj
- Owner: coldnew
- License: mit
- Created: 2016-03-26T15:22:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-09T05:34:02.000Z (almost 7 years ago)
- Last Synced: 2024-09-14T04:44:03.954Z (3 months ago)
- Topics: clojure, clojurescript, left-pad, leftpad
- Language: Clojure
- Size: 56.6 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# left-pad.clj
[![Circle CI](https://circleci.com/gh/coldnew/left-pad.clj.svg?style=svg)](https://circleci.com/gh/coldnew/left-pad.clj)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/coldnew/left-pad.clj/master/LICENSE)String left pad.
This library is clojure/clojurescript port of [left-pad](https://github.com/azer/left-pad), it's **NOT** recommand to use this library actually :).
[![Clojars Project](https://clojars.org/coldnew/left-pad/latest-version.svg)](http://clojars.org/coldnew/left-pad)
[Latest codox API docs](https://coldnew.github.io/left-pad.clj/).
## Dependencies
This library is designed for **both** Clojure/ClojureSript, you need following minimal version:
* Clojure 1.8.0 ↑
* ClojureScript 1.8.34 ↑## Usage
```clojure
(ns left-pad-test.core
(:require [coldnew.left-pad :refer [leftpad]))(leftpad "foo" 5)
;; => " foo"(leftpad "foobar" 6)
;; => "foobar"(leftpad 1 2 0)
;; => "01"```
## Testing
This library test with [speclj](https://github.com/slagyr/speclj), to test with Clojure, use following command:
```
$ lein spec
```If you want to test in ClojureScript, use below
```
$ lein cljsbuild test
```## License
Copyright © 2016 Yen-Chin, Lee <>
Distributed under the [MIT License](http://opensource.org/licenses/MIT).