Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

emojify-text

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emojify-text - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

8

index.es5.js

@@ -9,2 +9,6 @@ 'use strict';

var _neatContract = require('neat-contract');
var _neatContract2 = _interopRequireDefault(_neatContract);
var _characters = require('./characters');

@@ -38,5 +42,3 @@

return (0, _ramda.pipe)((0, _ramda.unless)((0, _ramda.is)(String), function () {
throw new TypeError('`input` should be an `String`');
}), (0, _ramda.toUpper)(), (0, _ramda.split)(''), (0, _ramda.map)((0, _ramda.ifElse)((0, _ramda.has)(_ramda.__, dictionary), (0, _ramda.prop)(_ramda.__, dictionary), (0, _ramda.always)((0, _ramda.defaultTo)([], dictionary.nochar)))), (0, _ramda.map)((0, _ramda.map)((0, _ramda.join)(''))), (0, _ramda.ifElse)((0, _ramda.always)(row), (0, _ramda.pipe)((0, _ramda.transpose)(), (0, _ramda.map)((0, _ramda.join)(''))), (0, _ramda.map)((0, _ramda.join)('\n'))), (0, _ramda.join)('\n'), (0, _ramda.replace)(/0/g, (0, _ramda.defaultTo)((0, _ramda.defaultTo)('0', bg), background)), (0, _ramda.replace)(/1/g, (0, _ramda.defaultTo)((0, _ramda.defaultTo)('1', fg), foreground)))(input);
return (0, _ramda.pipe)((0, _neatContract2.default)('input', String), _ramda.toUpper, (0, _ramda.split)(''), (0, _ramda.map)((0, _ramda.ifElse)((0, _ramda.has)(_ramda.__, dictionary), (0, _ramda.prop)(_ramda.__, dictionary), (0, _ramda.always)((0, _ramda.defaultTo)([], dictionary.nochar)))), (0, _ramda.map)((0, _ramda.map)((0, _ramda.join)(''))), (0, _ramda.ifElse)((0, _ramda.always)(row), (0, _ramda.pipe)((0, _ramda.transpose)(), (0, _ramda.map)((0, _ramda.join)(''))), (0, _ramda.map)((0, _ramda.join)('\n'))), (0, _ramda.join)('\n'), (0, _ramda.replace)(/0/g, (0, _ramda.defaultTo)((0, _ramda.defaultTo)('0', bg), background)), (0, _ramda.replace)(/1/g, (0, _ramda.defaultTo)((0, _ramda.defaultTo)('1', fg), foreground)))(input);
}

@@ -43,0 +45,0 @@

@@ -19,2 +19,3 @@ import {

} from 'ramda'
import contract from 'neat-contract'

@@ -44,7 +45,4 @@ import characters from './characters'

return pipe(
unless(
is(String),
() => { throw new TypeError(`\`input\` should be an \`String\``) }
),
toUpper(),
contract('input', String),
toUpper,
split(''),

@@ -63,3 +61,6 @@ map(

always(row),
pipe(transpose(), map(join(''))),
pipe(
transpose(),
map(join(''))
),
map(join('\n'))

@@ -66,0 +67,0 @@ ),

{
"name": "emojify-text",
"version": "1.0.2",
"version": "1.0.3",
"description": "Convert boring text to wonderful emojis",

@@ -57,4 +57,5 @@ "main": "index.es5.js",

"dependencies": {
"neat-contract": "^1.1.0",
"ramda": "^0.22.1"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc