@sir_wernich/taco-wrap

Takes a string and wraps it in taco emojis

Usage no npm install needed!

<script type="module">
  import sirWernichTacoWrap from 'https://cdn.skypack.dev/@sir_wernich/taco-wrap';
</script>

README

taco-wrap

Node.js Package Node.js CI

A Node.js module that wraps a string in taco emojis (🌮) or gives you a single taco emoji if you passed in a null or empty string.

npm install taco-wrap --save
yarn add taco-wrap
bower install taco-wrap --save

Usage

Javascript

var tacoWrap = require('taco-wrap');
var wrappedString = tacoWrap('taco ingredients');
Output should be '🌮 taco ingredients 🌮'

TypeScript

import tacoWrap from 'taco-wrap';
console.log(tacoWrap('cheese, mince, tomato, guacamole'))
Output should be '🌮 cheese, mince, tomato, guacamole 🌮'

AMD

define(function(require,exports,module){
  var tacoWrap = require('taco-wrap');
});

Test

npm run test