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

adapttext.js

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adapttext.js - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

src/adapttext.js

8

bower.json
{
"name": "AdaptText.js",
"main": "src/AdaptText.js",
"name": "adapttext.js",
"main": "src/adapttext.js",
"version": "1.0",

@@ -8,3 +8,3 @@ "authors": [

],
"description": "AdaptText.js is a dependency free and simple javascript solution capable to fit your text inside the parent element.",
"description": "adapttext.js is a dependency free and simple javascript solution capable to fit your text inside the parent element.",
"moduleType": [

@@ -31,4 +31,4 @@ "amd",

"type": "git",
"url": "git://github.com/luruke/AdaptText.js"
"url": "git://github.com/luruke/adapttext.js"
}
}
{
"name": "adapttext.js",
"version": "1.0.0",
"description": "AdaptText.js is a dependency free and simple javascript solution capable to fit your text inside the parent element.",
"main": "src/AdaptText.js",
"version": "1.0.1",
"description": "adapttext.js is a dependency free and simple javascript solution capable to fit your text inside the parent element.",
"main": "src/adapttext.js",
"directories": {

@@ -16,3 +16,3 @@ "test": "test"

"type": "git",
"url": "git://github.com/luruke/AdaptText.js"
"url": "git://github.com/luruke/adapttext.js"
},

@@ -19,0 +19,0 @@ "keywords": [

@@ -1,4 +0,4 @@

:raised_hands: AdaptText.js v1.0
:raised_hands: adapttext.js v1.0
==============
**AdaptText.js** is a dependency free and simple javascript solution capable to fit your text inside the parent element.
**adapttext.js** is a dependency free and simple javascript solution capable to fit your text inside the parent element.

@@ -13,9 +13,11 @@ It calculates the **maximum font-size** possibile in order to keep the text's **width** and **height** inside the parent.

-----
*AdaptText.js* supports **AMD**, **CommonJS** and **Browser global** (it uses [UMD](https://github.com/umdjs/umd))
*adapttext.js* supports **AMD**, **CommonJS** and **Browser global** (it uses [UMD](https://github.com/umdjs/umd))
You can install it using [bower](http://bower.io): `bower install AdaptText.js --save-dev`
You can install it using [bower](http://bower.io): `bower install adapttext.js --save-dev`
You can install it using [npm](https://www.npmjs.com): `npm install adapttext.js --save-dev`
or just including the script in your page:
```
<script src="AdaptText.js" type="text/javascript"></script>
<script src="adapttext.js" type="text/javascript"></script>
```

@@ -52,3 +54,3 @@

If you need the *AdaptText.js* instance later:
If you need the *adapttext.js* instance later:
```

@@ -61,3 +63,3 @@ var instance = $('.mybox').data('adaptText');

-----
*AdaptText.js* also accept some optional options:
*adapttext.js* also accept some optional options:
```

@@ -98,3 +100,3 @@ new AdaptText(el, {

-----
AdaptText.js is released under the **MIT** License and it's made by **Luigi De Rosa**.
adapttext.js is released under the **MIT** License and it's made by **Luigi De Rosa**.

@@ -101,0 +103,0 @@ The photo used in the demo is courtesy of https://unsplash.com/danielacuevas

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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