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

iconfont-map-builder

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iconfont-map-builder - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

7

index.js

@@ -33,5 +33,4 @@ #!/usr/bin/env node

if(matched){
console.log();
var content = elem.style.content.replace(/"\\f([0-9a-z]+)"/,'&#xf$1;');
map[String(matched[nameGrp])] = String(content);
var content = elem.style.content.replace(/"\\([0-9a-z]+)"/,'0x$1');
map[String(matched[nameGrp])] = parseInt(content);
}

@@ -44,3 +43,3 @@ }

JSON.stringify(map),
";module.exports = (name)=>map[name];"];
";module.exports = (name)=>String.fromCharCode(map[name]);"];
fs.writeFileSync(mapFile,output.join('\n'));

@@ -47,0 +46,0 @@ }

{
"name": "iconfont-map-builder",
"version": "1.0.0",
"version": "1.0.1",
"description": "Transform iconfont's css file to js 'name-character' map ",

@@ -12,7 +12,11 @@ "main": "index.js",

},
"keywords": [],
"repository":{
"type":"git",
"url":"https://github.com/sospartan/iconfont-map-builder"
},
"keywords": ["css","iconfont","font"],
"engines": {
"node": ">=4"
},
"author": "sospartan",
"author": "sospartan@gmail.com",
"license": "ISC",

@@ -19,0 +23,0 @@ "dependencies": {

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