{"@context":"https://w3id.org/codemeta/3.0","@type":"SoftwareSourceCode","identifier":"pkg:npm/string-length","name":"string-length","description":"Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes","version":"7.0.1","softwareVersion":"7.0.1","license":"https://spdx.org/licenses/MIT","codeRepository":"https://github.com/sindresorhus/string-length","issueTracker":"https://github.com/sindresorhus/string-length/issues","url":"https://github.com/sindresorhus/string-length#readme","keywords":["unicode","string","length","size","count","astral","symbol","surrogates","codepoints","ansi","escape","codes"],"programmingLanguage":{"@type":"ComputerLanguage","name":"JavaScript"},"maintainer":[{"@type":"Person","name":"sindresorhus"}],"author":[{"@type":"Person","name":"sindresorhus"}],"copyrightHolder":[{"@type":"Person","name":"sindresorhus"}],"dateCreated":"2014-04-16","dateModified":"2026-01-21","datePublished":"2026-01-21","copyrightYear":2014,"downloadUrl":"https://registry.npmjs.org/string-length/-/string-length-7.0.1.tgz","applicationCategory":"npm","runtimePlatform":"npm","developmentStatus":"active","sameAs":["https://www.npmjs.com/package/string-length"],"funder":[{"@type":"Organization","url":"https://github.com/sponsors/sindresorhus"},{"@type":"Organization","url":"https://opencollective.com/sindresorhus"},{"@type":"Organization","url":"https://buymeacoffee.com/sindresorhus"},{"@type":"Organization","url":"https://sindresorhus.com/donate"}],"https://www.w3.org/ns/activitystreams#likes":171,"https://forgefed.org/ns#forks":12}