reeverse
v1.0.0
Published
A dead simple text reverse library.
Downloads
1,444
Readme
reeverse
A dead simple text reverse library.
This library is created for learning Rollup purpose. It's not recommended for your projects.
Installation
- Install via npm or yarn:
$ npm install reeverse
# install with yarn
$ yarn add reeverse
- Include within your HTML
<script src="https://unpkg.com/[email protected]/dist/reeverse.min.js"></script>
Usage
- In a Node.js application.
const reverse = require('reeverse')
const text = 'Hello 12bit.vn'
const reversedText = reverse(text)
console.log(reversedText)
// nv.tib21 olleH
- In a modular environment.
import reverse from 'reeverse'
- In browsers.
<script>
var text = 'Hello 12bit.vn'
var reversedText = reverse(text)
console.log(reversedText)
// nv.tib21 olleH
</script>
Contribute
All contributions, big or small, are warmheartedly welcome! Please follow these steps if you want to contribute to this project.
Clone and install dependencies
git clone https://github.com/tatthien/reeverse.git
cd reeverse
yarn install
Build the library
yarn build
Once you're happy with the changes, commit the file and create a PR.
License
MIT © Thien Nguyen