Skip to content
A dead simple text reverse library.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.babelrc
.editorconfig
.gitignore
LICENSE
README.md
index.js
package.json
rollup.config.js
yarn.lock

README.md

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/reeverse@1.0.0/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

You can’t perform that action at this time.